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
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