<!--
{
  "availability" : [
    "iOS: 15.4.0 -",
    "iPadOS: 15.4.0 -",
    "macCatalyst: 15.4.0 -",
    "tvOS: 17.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVCaptureDevice/isFaceDrivenAutoFocusEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDevice(py)faceDrivenAutoFocusEnabled"
  },
  "title" : "isFaceDrivenAutoFocusEnabled"
}
-->

# isFaceDrivenAutoFocusEnabled

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

```
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 <doc://com.apple.documentation/documentation/Swift/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()`](/documentation/AVFoundation/AVCaptureDevice/lockForConfiguration()) method.
- Set the value of the device’s [`automaticallyAdjustsFaceDrivenAutoFocusEnabled`](/documentation/AVFoundation/AVCaptureDevice/automaticallyAdjustsFaceDrivenAutoFocusEnabled) property to <doc://com.apple.documentation/documentation/Swift/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()`](/documentation/AVFoundation/AVCaptureDevice/unlockForConfiguration()) method.

> Important:
> Updating the state of this property doesn’t initiate a focus change. After setting a new value, set an appropriate ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/focusMode-swift.property`` to apply the change.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)