How to programmatically check support of ‘Face Id’ and ‘Touch Id’
I’ve been struggling to get this to work and found that I needed to use a single instance of the LAContext and needed to call the LAContextInstance.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil) before getting the biometryType. Here is my final code with support for older iOS versions: import LocalAuthentication static func biometricType() -> BiometricType { let authContext = … Read more