Fixed removing horizontal bars from UIKitSearchBar

This commit is contained in:
dankito 2020-08-03 20:19:03 +02:00
parent 9d1dbadd46
commit 9074689523
2 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,7 @@ struct SelectBankDialog: View {
Form { Form {
Section { Section {
VStack { VStack {
UIKitSearchBar(text: searchTextBinding, focusOnStart: true) // TODO: try to get rid of the two horizontal lines UIKitSearchBar(text: searchTextBinding, focusOnStart: true)
HStack { HStack {
Text("Search by bank code, bank name or city") Text("Search by bank code, bank name or city")

View File

@ -30,6 +30,8 @@ struct UIKitSearchBar : UIViewRepresentable {
searchBar.placeholder = placeholder.localize() searchBar.placeholder = placeholder.localize()
searchBar.searchBarStyle = .minimal
searchBar.delegate = context.coordinator searchBar.delegate = context.coordinator
searchBar.searchTextField.delegate = context.coordinator searchBar.searchTextField.delegate = context.coordinator