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 {
Section {
VStack {
UIKitSearchBar(text: searchTextBinding, focusOnStart: true) // TODO: try to get rid of the two horizontal lines
UIKitSearchBar(text: searchTextBinding, focusOnStart: true)
HStack {
Text("Search by bank code, bank name or city")

View File

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