Fixed detecting if layout for FaceID or TouchID should be displayed

This commit is contained in:
dankito 2020-10-02 03:51:05 +02:00
parent cd8055a141
commit 0f83b2aced
1 changed files with 7 additions and 5 deletions

View File

@ -147,11 +147,13 @@ struct ProtectAppSettingsDialog: View {
isPasswordSelected = false isPasswordSelected = false
isNoAppProtectionSelected = false isNoAppProtectionSelected = false
if authenticationService.needsFaceIDToUnlockApp { if type == .biometric {
isFaceIDSelected = true if authenticationService.needsFaceIDToUnlockApp {
} isFaceIDSelected = true
else if authenticationService.needsTouchIDToUnlockApp { }
isTouchIDSelected = true else if authenticationService.needsTouchIDToUnlockApp {
isTouchIDSelected = true
}
} }
else if type == .password { else if type == .password {
isPasswordSelected = true isPasswordSelected = true