---
title: isFaceDrivenAutoFocusEnabled
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/isfacedrivenautofocusenabled
---

# isFaceDrivenAutoFocusEnabled

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

## Declaration

```swift
var isFaceDrivenAutoFocusEnabled: Bool { get set }
```

## Discussion

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: Obtain exclusive access to the device by calling its lockForConfiguration() method. Set the value of the device’s automaticallyAdjustsFaceDrivenAutoFocusEnabled property to false. 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. important: Updating the state of this property doesn’t initiate a focus change. After setting a new value, set an appropriate focusMode to apply the change.

## See Also

### Configuring automatic focus

- [isFocusModeSupported(_:)](avfoundation/avcapturedevice/isfocusmodesupported(_:).md)
- [focusMode](avfoundation/avcapturedevice/focusmode-swift.property.md)
- [AVCaptureDevice.FocusMode](avfoundation/avcapturedevice/focusmode-swift.enum.md)
- [isSmoothAutoFocusSupported](avfoundation/avcapturedevice/issmoothautofocussupported.md)
- [isSmoothAutoFocusEnabled](avfoundation/avcapturedevice/issmoothautofocusenabled.md)
- [automaticallyAdjustsFaceDrivenAutoFocusEnabled](avfoundation/avcapturedevice/automaticallyadjustsfacedrivenautofocusenabled.md)
- [isAutoFocusRangeRestrictionSupported](avfoundation/avcapturedevice/isautofocusrangerestrictionsupported.md)
- [autoFocusRangeRestriction](avfoundation/avcapturedevice/autofocusrangerestriction-swift.property.md)
- [AVCaptureDevice.AutoFocusRangeRestriction](avfoundation/avcapturedevice/autofocusrangerestriction-swift.enum.md)
