Skip to main content

Feature flags (iOS SDK)

WeavrComponentsFeatureFlags exposes runtime flags that alter SDK behaviour. Use the setter methods rather than assigning values directly — they apply thread-safety and environment-safety guards automatically.

mockBiometrics (sandbox only)

Replaces Apple's LocalAuthentication prompt with a custom UIAlertController, making biometric flows automatable in XCUITest. Default: false.

WeavrComponentsFeatureFlags.setMockBiometrics(true)

The mock dialog presents Pass, Reject, Not enrolled, Not available, and Cancel actions for your tests to drive.

Sandbox only

If the active environment is .Production, calls to setMockBiometrics(true) are silently ignored and the flag is reset to false. The same reset applies automatically when switching to .Production with the flag already on.