iOS call TouchID code:
override func viewDidLoad() { () let context = LAContext() var error: NSError? = nil let canEvaluatePolicy = (, error: &error) as Bool if error != nil { print(error!.localizedDescription as String) } if canEvaluatePolicy { print("Fingerprint verification function") (, localizedReason: "Put your dog's paws", reply: { (success: Bool, error: Error?) in if success { print("Verification Successfully") } else { print("Verification failed: \(error?.localizedDescription)") } }) } else { print("Fingerprint verification has not been enabled yet") } }
The above is the example code of the Swift fingerprint verification function module in iOS development introduced to you by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support for my website!