As found in documentation (die reine Schule) checking canEvaluatePolicy() first
This commit is contained in:
parent
195a46361d
commit
02af929744
|
@ -7,7 +7,13 @@ class BiometricAuthenticationService {
|
|||
|
||||
|
||||
var biometryType: LABiometryType {
|
||||
localAuthenticationContext.biometryType
|
||||
var error: NSError?
|
||||
|
||||
if localAuthenticationContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) {
|
||||
return localAuthenticationContext.biometryType
|
||||
}
|
||||
|
||||
return .none
|
||||
}
|
||||
|
||||
var isFaceIDSupported: Bool {
|
||||
|
|
Loading…
Reference in New Issue