Skip to content

Commit 1b486ea

Browse files
committed
Fix highlighted titles
1 parent d647e99 commit 1b486ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Demo/Integrations/IntegrationsExamples/DebugAnalyticsView.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ private struct DebugAnalyticsDetailsView: View {
8585

8686
private func makeRow(title: String, value: String) -> some View {
8787
VStack(alignment: .leading) {
88-
Text(higlighted(title, searchText: searchText))
89-
Text(higlighted(value, searchText: searchText))
88+
Text(highlighted(title, searchText: searchText))
89+
Text(highlighted(value, searchText: searchText))
9090
.foregroundStyle(.secondary)
9191
}
9292
}
@@ -103,7 +103,7 @@ private struct ListDisclosureIndicator: View {
103103
}
104104
}
105105

106-
private func higlighted(_ string: String, searchText: String) -> AttributedString {
106+
private func highlighted(_ string: String, searchText: String) -> AttributedString {
107107
var output = AttributedString(string)
108108
if !searchText.isEmpty, let range = output.range(of: searchText, options: [.caseInsensitive, .diacriticInsensitive]) {
109109
output[range].backgroundColor = .yellow.opacity(0.33)

Sources/PulseUI/PulseUI.docc/PulseUI.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ struct AnalyticsLogsView: View {
5959
var body: some View {
6060
List(messages, id: \.objectID) { message in
6161
NavigationLink {
62-
Text("TOOD: your details view here")
62+
Text("TODO: your details view here")
6363
} label: {
6464
VStack(alignment: .leading) {
6565
HStack {

0 commit comments

Comments
 (0)