Instance Method

writeModifiedImageData(toSavedPhotosAlbum:metadata:completionBlock:)

Saves image data to the Saved Photos album.

Declaration

func writeModifiedImageData(toSavedPhotosAlbum imageData: Data!, metadata: [AnyHashable : Any]!, completionBlock: ALAssetsLibraryWriteImageCompletionBlock!)

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.

See Also

Saving to the Saved Photos Album