---
title: depthData
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephoto/depthdata
---

# depthData

Depth or disparity map data captured with the photo.

## Declaration

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

## Mentioned in

Capturing photos with depth

## Discussion

Discussion To request capture of depth data alongside a photo (on supported devices), set the isDepthDataDeliveryEnabled property of your photo settings object to true when requesting photo capture. If you did not request depth data delivery, this property’s value is nil. note: If you set the embedsDepthDataInPhoto property of your photo object to false when requesting photo capture, this property still provides depth data, but that data is not included when generating photo file data for output.

## See Also

### Accessing photo metadata

- [cameraCalibrationData](avfoundation/avcapturephoto/cameracalibrationdata.md)
- [sourceDeviceType](avfoundation/avcapturephoto/sourcedevicetype.md)
- [metadata](avfoundation/avcapturephoto/metadata.md)
- [portraitEffectsMatte](avfoundation/avcapturephoto/portraiteffectsmatte.md)
