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

# isDepthDataDeliveryEnabled

A Boolean value that specifies whether to configure the capture pipeline for depth data capture.

```
var isDepthDataDeliveryEnabled: Bool { get set }
```

## Discussion

Depth data captures a per-pixel map of scene depth information delivered alongside the photo image and optionally embedded in image file output. Depth data can be used for purposes such as applying depth-sensitive photo filter effects (like that seen in the iOS Camera app’s Portrait mode) and performing computer vision tasks.

Capturing depth data requires that a capture session set up its internal rendering pipeline differently. If you intend to capture depth data at all, set this property to <doc://com.apple.documentation/documentation/Swift/true> before calling the [`AVCaptureSession`](/documentation/AVFoundation/AVCaptureSession) [`startRunning()`](/documentation/AVFoundation/AVCaptureSession/startRunning()) method. Changing this property while the session is running requires a lengthy reconfiguration of the capture render pipeline: Live Photo captures in progress will end immediately, unfulfilled photo requests will abort, and video preview will temporarily freeze.

You must enable this option before initiating a photo capture with the [`isDepthDataDeliveryEnabled`](/documentation/AVFoundation/AVCapturePhotoSettings/isDepthDataDeliveryEnabled) property of your photo settings object set to <doc://com.apple.documentation/documentation/Swift/true>. However, after you’ve enabled this option, you are free to issue photo capture requests both with and without depth data.

---

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)