Created
May 21, 2018 07:41
-
-
Save vishw33/870506f123ae7cf57695da7eb487b4ba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| static func isDeviceSupportedforAuth () -> Bool | |
| { | |
| let context = LAContext() | |
| var policy: LAPolicy? | |
| policy = .deviceOwnerAuthentication | |
| var err: NSError? | |
| guard context.canEvaluatePolicy(policy!, error: &err) else | |
| { | |
| return false | |
| } | |
| return true | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment