- iOS 12.0+
- Mac Catalyst 13.0+
AVCapturePhoto is a wrapper representing a photo in a file container. To flatten the photo to an
NSData object to write to file, call
file. For more complex flattening operations such as replacing or stripping metadata, call
file and provide a delegate for customized replacement or stripping behavior. This delegate’s methods are called synchronously before the flattening process begins.