writeModifiedImageData(toSavedPhotosAlbum:metadata:completionBlock:)
Saves image data to the Saved Photos album.
Declaration
func writeModifiedImageData(toSavedPhotosAlbum imageData: Data!, metadata: [AnyHashable : Any]!, completionBlock: (@Sendable (URL?, (any Error)?) -> Void)!)func writeModifiedImageData(toSavedPhotosAlbum imageData: Data!, metadata: [AnyHashable : Any]!) async throws -> URL?Parameters
- imageData:
Image data for the asset.
- metadata:
Metadata for the image.
- completionBlock:
The block invoked after the save operation completes.
Discussion
This method saves imageData to the saved photos album as a new asset that is considered a modified version of the receiver.