Face ID evaluation process not working properly
I'm trying to get if Face ID or Touch ID succeeded in the function below func authenticate() -> Bool{ let context = LAContext() var error: NSError? guard context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &error) else { return false } var returnValue = false let reason = "Face ID authentication" context.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: reason) { isAuthorized, error in guard isAuthorized == true else { return print(error) } returnValue = true print("success") } return returnValue } but even when it succeeds with this code it skips