I try to detect the biometric capabilities of an iPhone like this:
let authenticationContext = LAContext()
switch authenticationContext.biometryType
{ case LABiometryType.typeFaceID:
print("faceID")
case LABiometryType.typeTouchID:
print("touchID")
case LABiometryType.none:
print("no biometric")
}
In Xcode 9 I get in the iPhone-X and iPhone 8 Simulator "LABiometryType.none" instead of expected LABiometryType.typeFaceID and LABiometryType.typeTouchID
Is that the correct way to detect Face-ID?
(It´s not about detecting an iPhone X (future iPhones will probably also support Face-ID)