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

# depthData

Depth or disparity map data captured with the photo.

```
var depthData: AVDepthData? { get }
```

## Discussion

To request capture of depth data alongside a photo (on supported devices), set the [`isDepthDataDeliveryEnabled`](/documentation/AVFoundation/AVCapturePhotoSettings/isDepthDataDeliveryEnabled) property of your photo settings object to <doc://com.apple.documentation/documentation/Swift/true> when requesting photo capture. If you did not request depth data delivery, this property’s value is `nil`.

> Note:
> If you set the ``doc://com.apple.avfoundation/documentation/AVFoundation/AVCapturePhotoSettings/embedsDepthDataInPhoto`` property of your photo object to <doc://com.apple.documentation/documentation/Swift/false> when requesting photo capture, this property still provides depth data, but that data is not included when generating photo file data for output.

---

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)