Creates a request for adding a new asset to the Photos library using asset resources.
- iOS 9+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 10+
An asset creation request.
Call this method within a photo library change block to create a new asset. For details on change blocks, see
PHPhoto. After calling this method, and before returning from the change block use the methods listed in Providing Data Resources for the New Asset to specify one or more data resources for the asset.
To set metadata properties of the newly created asset, use the corresponding properties of the change request (provided by the superclass
PHAsset and listed in Modifying Assets). To reference the newly created asset later in the same change block or after the change block completes, use the
placeholder property to retrieve a placeholder object.