From the course: Biometric Authentication for iOS in Swift

Unlock the full course today

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

Evaluating a policy

Evaluating a policy

From the course: Biometric Authentication for iOS in Swift

Start my 1-month free trial

Evaluating a policy

- [Instructor] Now that we've checked to make sure the user can evaluate the policy with their device, let's actually evaluate the policy. So in line 28, I'm going to add context, evaluate policy, and for the policy, I'm going to pass in the same thing we had above, device owner authentication with biometrics, and for the localized string, we want to put something consistent with what we added for the localized fallback title. That's how it's used. Now for Face ID, this may not even show up, because as soon as the Face ID engages with the user, it might recognize their face and be done before they recognize anything even popping up. But if we set a fallback title and that does get presented after they've tried a couple of times, then this needs to be consistent between the two. So it'll show a consistent story to your users. So I'm just going to put fallback title override reason. So this will make it consistent with our fallback up here. Notice they're not very meaningful in this…

Contents