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

# lensPosition

The current focus position of the lens.

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

## 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.

---

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)