Update BiometricsService.swift
This commit is contained in:
parent
c27a031dcc
commit
af4ca742c0
|
|
@ -32,8 +32,7 @@ public final class BiometricsService {
|
|||
/// Returns true if user can authenticate via faceID
|
||||
public var isFaceIdSupported: Bool {
|
||||
if #available(iOS 11.0, *) {
|
||||
return laContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil)
|
||||
&& laContext.biometryType == .faceID
|
||||
return canAuthenticateWithBiometrics && laContext.biometryType == .faceID
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue