Contents

automaticallyAdjustsFaceDrivenAutoFocusEnabled

A Boolean value that indicates whether the device automatically adjusts face-driven autofocus.

Declaration

var automaticallyAdjustsFaceDrivenAutoFocusEnabled: Bool { get set }

Discussion

The value of this property defaults to true for devices that support auto focus. If your app requires explicitly setting the state of isFaceDrivenAutoFocusEnabled, set this value to false.

To set this property value, you must call the device’s lockForConfiguration() method to obtain exclusive access to configure it. Otherwise, attempting to set a value raises an exception. When you finish configuring the device, call unlockForConfiguration() to release the lock.

See Also

Configuring automatic focus