diff --git a/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings b/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings index 0f0c5969..283edffb 100644 --- a/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings +++ b/ui/BankingiOSApp/BankingiOSApp/Base.lproj/Localizable.strings @@ -215,11 +215,11 @@ Unfortunately, Bankmeister cannot know whether a bank charges for real-time tran /* ProtectAppSettingsDialog */ -"Protect App Settings Dialog title" = "Select app protection"; +"Protect App Settings Dialog title" = "App protection"; "FaceID" = "FaceID"; "TouchID" = "TouchID"; "Password" = "Password"; -"None" = "Unprotected"; +"Unprotected" = "Unprotected"; "Authenticate with TouchID" = "Authenticate with TouchID"; "Enter new password" = "Enter new password"; "Confirm password" = "Confirm password"; diff --git a/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings b/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings index 083ee64f..3d0cedd9 100644 --- a/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings +++ b/ui/BankingiOSApp/BankingiOSApp/de.lproj/Localizable.strings @@ -216,11 +216,11 @@ Ob eine Bank Gebühren für Echtzeitüberweisungen erhebt, kann Bankmeister leid /* ProtectAppSettingsDialog */ -"Protect App Settings Dialog title" = "Appzugangsschutz festlegen"; +"Protect App Settings Dialog title" = "Appzugangsschutz"; "FaceID" = "FaceID"; "TouchID" = "TouchID"; "Password" = "Passwort"; -"None" = "Ungeschützt"; +"Unprotected" = "Ungeschützt"; "Authenticate with TouchID" = "Mit TouchID authentifizieren"; "Enter new password" = "Neues Passwort eingeben"; "Confirm password" = "Bestätigen"; diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/ProtectAppSettingsDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/ProtectAppSettingsDialog.swift index 3a4a2049..bef446e3 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/ProtectAppSettingsDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/ProtectAppSettingsDialog.swift @@ -82,7 +82,7 @@ struct ProtectAppSettingsDialog: View { Section { Picker("", selection: selectedAuthenticationTypeIndexBinding) { ForEach(0.. LocalizedStringKey { + switch type { + case .biometric: + if authenticationService.deviceSupportsTouchID { + return "TouchID" + } + else { + return "FaceID" + } + case .password: + return "Password" + default: + return "Unprotected" + } + } + private func selectedAuthenticationTypeChanged(_ type: AuthenticationType) { isFaceIDSelected = false isTouchIDSelected = false