Contents

isFaceDrivenAutoFocusEnabled

A Boolean value that indicates whether the device has face-driven autofocus enabled.

Declaration

var isFaceDrivenAutoFocusEnabled: Bool { get set }

Discussion

Face-driven auto focus takes a subject’s face into account when adjusting auto focus. For apps that link against iOS 15.4 or later, the value of this property defaults to true for devices that support auto focus.

Before setting a value for this property, perform the following:

Attempting to set a value before performing these steps results in an exception.

When you finish configuring the device, unlock it by calling its unlockForConfiguration() method.

See Also

Configuring automatic focus