1

I have implemented face id API in my application. Currently Face id is registered for device but disabled for my app.

How do I check programmatically in Swift that Face id is enabled for my app?

I know to check the face id is registered in device or not.

RohitK
  • 1,444
  • 1
  • 14
  • 37

1 Answers1

4
let context = LAContext()
if ( context.biometryType == .typeFaceID ) {
      // Face ID
}
if ( context.biometryType == .typeTouchID) {
     // Touch ID
} else {
    // Stone Age
}

don't forgot to put versioning condition cuz faceID is only available after ios 11

Mahesh Dangar
  • 806
  • 5
  • 11