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

# embedsDepthDataInPhoto

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

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

## Discussion

When this property is <doc://com.apple.documentation/documentation/Swift/true> (the default), and depth data capture is enabled with the [`isDepthDataDeliveryEnabled`](/documentation/AVFoundation/AVCapturePhotoSettings/isDepthDataDeliveryEnabled) property, the [`AVCapturePhoto`](/documentation/AVFoundation/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 <doc://com.apple.documentation/documentation/Swift/false> if you wish to capture depth data with a photo but not include depth data in  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)