From the course: iOS Development: Security

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Implementing Touch ID

Implementing Touch ID - iOS Tutorial

From the course: iOS Development: Security

Start my 1-month free trial

Implementing Touch ID

- [Instructor] In the following demo, we're going to build an app that relies on fingerprint sensor authentication. So I create a new app, let's start Xcode, new Xcode project, Single View App template is good, and I call the app BiometricDemo. Save it to the desktop. Now let's add a Team and now I can switch Now let's add a Team and now I can switch to the ViewController file. We'll use the local authentication framework API which let's us authenticate using the user's biometrics. So I need to import the local authentication framework first. I'm going to implement the authentication logic into the viewDidLoad method. Let me maximize the screen. First we need an authentication context. Let authenticationContext, and I'm going to initialize it using the LAContext initializer. Next I call context canEvaluatePolicy instance method to find out whether the device supports authentication with biometrics. So if authenticationContext canEvaluatePolicy, So if authenticationContext…

Contents