Contents

isDepthDataDeliveryEnabled

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

Declaration

var isDepthDataDeliveryEnabled: Bool { get set }

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).

See Also

Capturing depth data