From 6ea94e436b2b37e09d636024b2acb7b3626be232 Mon Sep 17 00:00:00 2001 From: dankito Date: Tue, 28 Jul 2020 12:16:23 +0200 Subject: [PATCH] Added label to SearchBankDialog search bar --- .../BankingiOSApp/Base.lproj/Localizable.strings | 1 + .../BankingiOSApp/de.lproj/Localizable.strings | 1 + .../BankingiOSApp/ui/ViewExtensions.swift | 2 +- .../BankingiOSApp/ui/views/SelectBankDialog.swift | 13 ++++++++++++- 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings b/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings index 46a5505a..8390b1d2 100644 --- a/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings +++ b/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings @@ -17,6 +17,7 @@ /* SelectBankDialog */ "Select Bank Dialog Title" = "Select your bank ..."; +"Search by bank code, bank name or city" = "Search by bank code, bank name or city"; /* AddAccountDialog */ diff --git a/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings b/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings index 9a092bcb..72954cdd 100644 --- a/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings +++ b/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings @@ -17,6 +17,7 @@ /* SelectBankDialog */ "Select Bank Dialog Title" = "Bank auswählen"; +"Search by bank code, bank name or city" = "Suche mittels Bankleitzahl, Bankname oder Ort"; /* AddAccountDialog */ diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/ViewExtensions.swift b/ui/BankingiOSApp/BankingiOSApp/ui/ViewExtensions.swift index e7567c41..583192d4 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/ViewExtensions.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/ViewExtensions.swift @@ -40,7 +40,7 @@ extension View { func detailFont() -> some View { return self - .font(.callout) + .font(.callout) } func styleAsDetail() -> some View { diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/SelectBankDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/SelectBankDialog.swift index 1c244fe7..084a085c 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/SelectBankDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/SelectBankDialog.swift @@ -37,7 +37,18 @@ struct SelectBankDialog: View { var body: some View { Form { Section { - UIKitSearchBar(text: searchTextBinding) // TODO: try to get rid of the two horizontal lines + VStack { + UIKitSearchBar(text: searchTextBinding) // TODO: try to get rid of the two horizontal lines + + HStack { + Text("Search by bank code, bank name or city") + .font(.caption) + .styleAsDetail() + + Spacer() + } + .padding(.leading, 10) + } } Section {