---
title: lensPosition
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/lensposition
---

# lensPosition

The current focus position of the lens.

## Declaration

```swift
var lensPosition: Float { get }
```

## Discussion

Discussion A lens position value doesn’t correspond to an exact physical distance, nor does it represent a consistent focus distance from device to device. The range of possible positions is 0.0 to 1.0, with 0.0 being the shortest distance at which the lens can focus and 1.0 the furthest. Note that 1.0 doesn’t represent focus at infinity. The default value is 1.0. This property is key-value observable.

## See Also

### Setting focus manually

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