---
title: isLockingFocusWithCustomLensPositionSupported
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/islockingfocuswithcustomlenspositionsupported
---

# isLockingFocusWithCustomLensPositionSupported

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

## Declaration

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

## Discussion

Discussion If this property’s value is false, calling the setFocusModeLocked(lensPosition:completionHandler:) method with a lens position value other than currentLensPosition raises an exception.

## See Also

### Setting focus manually

- [lensPosition](avfoundation/avcapturedevice/lensposition.md)
- [currentLensPosition](avfoundation/avcapturedevice/currentlensposition.md)
- [setFocusModeLocked(lensPosition:completionHandler:)](avfoundation/avcapturedevice/setfocusmodelocked(lensposition:completionhandler:).md)
