Instance Property


The localized title for the fallback button in the dialog presented to the user during authentication.


var localizedFallbackTitle: String? { get set }


The system presents a fallback button when biometric authentication fails—for example, because the system doesn’t recognize the presented finger, or after several failed attempts to recognize the user’s face. Tapping the button lets the user revert to authentication using the device passcode or password instead.

Use the localizedFallbackTitle property to set a title for the fallback button. When the property is nil—as it is by default—the user sees an appropriate default title, like “Use Passcode”. Otherwise, provide a localized string that’s short and clear.

To eliminate the fallback option, set the fallback title to an empty string. This hides the button from the interface.

See Also

Customizing Authentication Prompts

var localizedReason: String

The localized explanation for authentication shown in the dialog presented to the user.

var localizedCancelTitle: String?

The localized title for the cancel button in the dialog presented to the user during authentication.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software