|
@@ -27,7 +27,7 @@ class KeychainCoordinator:NSObject, PAPasscodeViewControllerDelegate {
|
|
var touchIDEnabled = UserDefaults.standard.bool(forKey:kVLCSettingPasscodeAllowTouchID)
|
|
var touchIDEnabled = UserDefaults.standard.bool(forKey:kVLCSettingPasscodeAllowTouchID)
|
|
let laContext = LAContext()
|
|
let laContext = LAContext()
|
|
|
|
|
|
- if #available(iOS 11.0, *), laContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil) {
|
|
|
|
|
|
+ if #available(iOS 11.0.1, *), laContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil) {
|
|
touchIDEnabled = touchIDEnabled && laContext.biometryType == .touchID
|
|
touchIDEnabled = touchIDEnabled && laContext.biometryType == .touchID
|
|
}
|
|
}
|
|
return touchIDEnabled
|
|
return touchIDEnabled
|
|
@@ -36,7 +36,7 @@ class KeychainCoordinator:NSObject, PAPasscodeViewControllerDelegate {
|
|
var faceIDEnabled = UserDefaults.standard.bool(forKey:kVLCSettingPasscodeAllowFaceID)
|
|
var faceIDEnabled = UserDefaults.standard.bool(forKey:kVLCSettingPasscodeAllowFaceID)
|
|
let laContext = LAContext()
|
|
let laContext = LAContext()
|
|
|
|
|
|
- if #available(iOS 11.0, *), laContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil) {
|
|
|
|
|
|
+ if #available(iOS 11.0.1, *), laContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil) {
|
|
faceIDEnabled = faceIDEnabled && laContext.biometryType == .faceID
|
|
faceIDEnabled = faceIDEnabled && laContext.biometryType == .faceID
|
|
}
|
|
}
|
|
return faceIDEnabled
|
|
return faceIDEnabled
|