Skip to content

Instantly share code, notes, and snippets.

@akultomar17
Last active November 11, 2017 14:26
Show Gist options
  • Save akultomar17/b527f42052ea4dc11b3d3df46d62096d to your computer and use it in GitHub Desktop.
Save akultomar17/b527f42052ea4dc11b3d3df46d62096d to your computer and use it in GitHub Desktop.
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