Fixed detecting if layout for FaceID or TouchID should be displayed
This commit is contained in:
parent
cd8055a141
commit
0f83b2aced
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue