---
title: maxBiometryFailures
framework: localauthentication
role: symbol
role_heading: Instance Property
path: localauthentication/lacontext/maxbiometryfailures
---

# maxBiometryFailures

The number of biometric authentication failures after which the context falls back to another mechanism.

## Declaration

```swift
var maxBiometryFailures: NSNumber? { get set }
```

## Discussion

Discussion Biometry lockout happens after too many wrong attempts, regardless of how you set this property.

## See Also

### Evaluating authentication policies

- [evaluatePolicy(_:localizedReason:reply:)](localauthentication/lacontext/evaluatepolicy(_:localizedreason:reply:).md)
- [evaluatedPolicyDomainState](localauthentication/lacontext/evaluatedpolicydomainstate.md)
