Post not yet marked as solved
Post marked as unsolved with 1 replies, 681 views
Is it possible to determine if the device has Touch/Face ID from the home widget? And was it enabled.
authError.code equals to kLAErrorBiometryNotAvailable when this code runs from the home widget on the real device. Nevertheless, it works correctly in the Simulator.
var authError: NSError?
LAContext().canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: &authError)
It is a bug or a feature?