I am working on a 3D Scanning app and I created the test extension below in order to check if my user's device has a TrueDepth camera. Currently I have a problem in my app where I have to keep changing the list of compatible devices from Apple's Docs and keep updating the reflection switch-cases from here.
static let hasTrueDepthCamera: Bool = {
let authContext = LAContext()
let _ = authContext.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: nil)
return authContext.biometryType == LABiometryType.faceID;
}()
I was wondering if the extension will work even if the user's FaceId is not setup in their settings, or will it return false? Unfortunately, I am not able to test it on my phone because it will remove all the cards from my account wallet.