Fix search suggestions whitespace

This commit is contained in:
Arkadiusz Fal 2023-09-24 11:14:11 +02:00
parent a71a9f92b4
commit e556dac871

View File

@ -11,7 +11,7 @@ struct SearchSuggestions: View {
} label: { } label: {
HStack { HStack {
Image(systemName: "magnifyingglass") Image(systemName: "magnifyingglass")
Text(state.queryText) Text(state.queryText.trimmingCharacters(in: .whitespacesAndNewlines))
.lineLimit(1) .lineLimit(1)
} }
} }