Remove availability checks for iOS 11.0 (#486)
This commit is contained in:
parent
7bd860cbe5
commit
a83acd096a
3 changed files with 6 additions and 20 deletions
|
|
@ -55,7 +55,7 @@ open class PasscodeLockViewController: UIViewController, UITextFieldDelegate {
|
|||
let myContext = LAContext()
|
||||
var authError: NSError?
|
||||
if myContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &authError) {
|
||||
if #available(iOS 11.0, *), myContext.biometryType == .faceID {
|
||||
if myContext.biometryType == .faceID {
|
||||
biometryAuthButton.setTitle("FaceId".localize(), for: .normal)
|
||||
} else {
|
||||
biometryAuthButton.setTitle("TouchId".localize(), for: .normal)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue