replacementDepthData(for:)
A callback in which you can provide replacement depth data or strip existing depth data from the file.
Declaration
optional func replacementDepthData(for photo: AVCapturePhoto) -> AVDepthData?Parameters
- photo:
The calling instance of Avcapturephoto whose file metadata you’re modifying.
Return Value
An instance of AVDepthData. To preserve the existing depth data, return photo.depthData. To strip existing depth data, provide a replacement AVDepthData instance.
Discussion
This callback is optional. If your delegate doesn’t implement this callback, the existing metadata in the in-memory AVCapturePhoto container is written directly to the file data representation.