---
title: isDepthDataDeliveryEnabled
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturephotosettings/isdepthdatadeliveryenabled
---

# isDepthDataDeliveryEnabled

A Boolean value that determines whether the photo output captures depth data along with the photo.

## Declaration

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

## Discussion

Discussion When this property is  false (the default), the capture output produces only photo data and metadata. If you change this property to true, the capture output records per-pixel scene depth information and delivers an AVDepthData object in the photo capture results. Enabling depth capture for a photo capture request requires that the photo output first be configured for depth capture using its own isDepthDataDeliveryEnabled property (and raises an exception otherwise). note: Enabling depth capture along with photo capture adds significant processing time before delivery of results to your delegate’s photoOutput(_:didFinishProcessingPhoto:error:) method.

## See Also

### Capturing depth data

- [embedsDepthDataInPhoto](avfoundation/avcapturephotosettings/embedsdepthdatainphoto.md)
- [isDepthDataFiltered](avfoundation/avcapturephotosettings/isdepthdatafiltered.md)
