---
title: currentLensPosition
framework: avfoundation
role: symbol
role_heading: Type Property
path: avfoundation/avcapturedevice/currentlensposition
---

# currentLensPosition

A constant that represents the current lens position.

## Declaration

```swift
class let currentLensPosition: Float
```

## Discussion

Discussion Pass this value to the setFocusModeLocked(lensPosition:completionHandler:) method to lock focus without changing the current lens position.

## See Also

### Setting focus manually

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