Last active
November 11, 2017 14:26
-
-
Save akultomar17/b527f42052ea4dc11b3d3df46d62096d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidAppear(_ animated: Bool) { | |
super.viewDidAppear(animated) | |
authenticateUserUsingTouchId() | |
} | |
fileprivate func authenticateUserUsingTouchId() { | |
let context = LAContext() | |
if context.canEvaluatePolicy(LAPolicy.deviceOwnerAuthentication, error: nil) { | |
self.evaulateTocuhIdAuthenticity(context: context) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment