Skip to content

Instantly share code, notes, and snippets.

@adamjleonard
Last active August 29, 2015 14:06
Show Gist options
  • Save adamjleonard/96e52f88b63f2888eca6 to your computer and use it in GitHub Desktop.
Save adamjleonard/96e52f88b63f2888eca6 to your computer and use it in GitHub Desktop.
func requestFingerprintAuthentication() {
let context = LAContext()
var authError: NSError?
let authenticationReason: String = "To display a message to the user"
if context.canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: &authError) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment