Using ios passcode in my app

Hi, I am creating simple app with ios 17. I want to authenticate via ios passcode. but I couldn't find any example about it. Where can I get some example about using ios passcode in ios 17? please help me.

I want to authenticate via ios passcode.

That’s a very broad problem spec. Can you share more details about:

  • What you want to authenticate?

  • Your expected user workflow?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Use LocalAuthentication. If your device doesn't have biometrics (Touch ID, Face ID) then you'll be asked for the iOS passcode. If you have biometrics that will be attempted first. If it fails, you're asked for the iOS passcode.

Is there some reason you want to skip biometrics and go straight for the passcode? That would be annoying for users who expect to be able to unlock an app with biometrics.

Using ios passcode in my app
 
 
Q