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

# isLockingFocusWithCustomLensPositionSupported

A Boolean value that indicates whether the device supports locking focus to a specific lens position.

```
var isLockingFocusWithCustomLensPositionSupported: Bool { get }
```

## Discussion

If this property’s value is <doc://com.apple.documentation/documentation/Swift/false>, calling the [`setFocusModeLocked(lensPosition:completionHandler:)`](/documentation/AVFoundation/AVCaptureDevice/setFocusModeLocked(lensPosition:completionHandler:)) method with a lens position value other than [`currentLensPosition`](/documentation/AVFoundation/AVCaptureDevice/currentLensPosition) raises an exception.

---

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)