From 0f83b2aced68b7ba30580ac795228e99bf3fe225 Mon Sep 17 00:00:00 2001 From: dankito Date: Fri, 2 Oct 2020 03:51:05 +0200 Subject: [PATCH] Fixed detecting if layout for FaceID or TouchID should be displayed --- .../ui/dialogs/ProtectAppSettingsDialog.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/ProtectAppSettingsDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/ProtectAppSettingsDialog.swift index 0b1d50d8..f0d3b0a7 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/ProtectAppSettingsDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/dialogs/ProtectAppSettingsDialog.swift @@ -147,11 +147,13 @@ struct ProtectAppSettingsDialog: View { isPasswordSelected = false isNoAppProtectionSelected = false - if authenticationService.needsFaceIDToUnlockApp { - isFaceIDSelected = true - } - else if authenticationService.needsTouchIDToUnlockApp { - isTouchIDSelected = true + if type == .biometric { + if authenticationService.needsFaceIDToUnlockApp { + isFaceIDSelected = true + } + else if authenticationService.needsTouchIDToUnlockApp { + isTouchIDSelected = true + } } else if type == .password { isPasswordSelected = true