<!--
{
  "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/automaticallyAdjustsFaceDrivenAutoFocusEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDevice(py)automaticallyAdjustsFaceDrivenAutoFocusEnabled"
  },
  "title" : "automaticallyAdjustsFaceDrivenAutoFocusEnabled"
}
-->

# automaticallyAdjustsFaceDrivenAutoFocusEnabled

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

```
var automaticallyAdjustsFaceDrivenAutoFocusEnabled: Bool { get set }
```

## Discussion

The value of this property defaults to <doc://com.apple.documentation/documentation/Swift/true> for devices that support auto focus. If your app requires explicitly setting the state of [`isFaceDrivenAutoFocusEnabled`](/documentation/AVFoundation/AVCaptureDevice/isFaceDrivenAutoFocusEnabled), set this value to <doc://com.apple.documentation/documentation/Swift/false>.

To set this property value, you must call the device’s [`lockForConfiguration()`](/documentation/AVFoundation/AVCaptureDevice/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()`](/documentation/AVFoundation/AVCaptureDevice/unlockForConfiguration()) to release the lock.

---

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)