Created
May 21, 2018 07:41
-
-
Save vishw33/870506f123ae7cf57695da7eb487b4ba to your computer and use it in GitHub Desktop.
Revisions
-
vishw33 created this gist
May 21, 2018 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ 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 }