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

# continuousAutoFocusTrackingLensPositionBias

Bias applied to the lens position during continuous autofocus tracking, normalized between -1 and 1.

```
var continuousAutoFocusTrackingLensPositionBias: Float { get set }
```

## Discussion

While the device is actively tracking a subject to keep in focus, this property may be used to specify a bias applied to the lens position so that different portions of the subject are in focus. This property’s default value is 0 which aims to keep the median of the subject’s depth profile in focus. Values approaching -1 bias the lens position towards the closest portion of the depth profile while values approaching 1 bias the lens position towards the furthest portion of the profile. As the subject moves, the bias continues to apply to the subject’s new depth profile.

To apply bias updates, set the device’s focus mode to `AVCaptureFocusModeContinuousAutoFocus` after each change. The bias value has no effect otherwise. The value will only be automatically reset to 0 if cinematic video capture is enabled.

> Throws: `NSInvalidArgumentException` if this property is set to a value other than 0 when the device’s ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/isContinuousAutoFocusTrackingEnabled`` is `false`.

> Throws: `NSInvalidArgumentException` if this property is set to a value less than -1 or greater than 1.

> Throws: `NSInvalidArgumentException` if this property is set to a non-zero value when the device is configured for cinematic video capture.

> Throws: `NSGenericException` if the device is not locked for configuration using ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCaptureDevice/lockForConfiguration()``.

---

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)