Update BiometricsService.swift

This commit is contained in:
Aliona 2018-07-25 16:04:52 +03:00 committed by GitHub
parent c27a031dcc
commit af4ca742c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

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