---
title: embedsDepthDataInPhoto
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephotosettings/embedsdepthdatainphoto
---

# embedsDepthDataInPhoto

A Boolean value that determines whether any depth data captured with the photo is included when generating output file data.

## Declaration

```swift
var embedsDepthDataInPhoto: Bool { get set }
```

## Mentioned in

Capturing photos with depth

## Discussion

Discussion When this property is true (the default), and depth data capture is enabled with the isDepthDataDeliveryEnabled property, the AVCapturePhoto class includes the depth map as an embedded attachment when you flatten the photo data for output in compatible file formats. Set this property to false if you wish to capture depth data with a photo but not include depth data in  output.

## See Also

### Capturing depth data

- [isDepthDataDeliveryEnabled](avfoundation/avcapturephotosettings/isdepthdatadeliveryenabled.md)
- [isDepthDataFiltered](avfoundation/avcapturephotosettings/isdepthdatafiltered.md)
