creationRequestForAsset(from:)
Creates a request for adding a new image asset to the Photos library.
Declaration
class func creationRequestForAsset(from image: UIImage) -> Selfclass func creationRequestForAsset(from image: NSImage) -> SelfParameters
- image:
An image.
Mentioned in
Return Value
An asset creation request.
Discussion
Call this method within a photo library change block to create a new asset. For details on change blocks, see PHPhotoLibrary.
To reference the newly created asset later in the same change block or after the change block completes, use the placeholderForCreatedAsset property to retrieve a placeholder object.