From 9074689523dbd38df0b5bf6525b179bcf76f819d Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 3 Aug 2020 20:19:03 +0200 Subject: [PATCH] Fixed removing horizontal bars from UIKitSearchBar --- ui/BankingiOSApp/BankingiOSApp/ui/views/SelectBankDialog.swift | 2 +- ui/BankingiOSApp/BankingiOSApp/ui/views/UIKitSearchBar.swift | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/SelectBankDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/SelectBankDialog.swift index 8aacff6c..526d3bbf 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/SelectBankDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/SelectBankDialog.swift @@ -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") diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/UIKitSearchBar.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/UIKitSearchBar.swift index f742ecb6..a5d32222 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/UIKitSearchBar.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/UIKitSearchBar.swift @@ -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