O'Reilly logo

Application Development with Swift by Hossam Ghareeb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The LocalAuthentication framework

To start using Touch ID in your app, you have to use a new framework named LocalAuthentication. This framework provides everything you need to add Touch ID authentication in to your app. The framework is responsible for displaying the touch prompt to a user to provide his fingerprint for scanning to perform authentication. Some users may refuse to use it. If the authentication failed for any reason, in that case, you have to provide your own way for authentication like the old ways via e-mail or something else. Now, I will show you how to use the LocalAuthentication framework to prompt the user to authenticate himself.

The final result of our demo will be as follows:

The first step is to create a new iOS project ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required