Creates a request for adding a new asset collection to the Photos library.
SDKs
- iOS 8+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 10+
Framework
- Photos
Declaration
Parameters
image
A name for the new asset collection.
Return Value
An asset collection creation request.
Discussion
Call this method within a photo library change block to create a new asset collection. For details on change blocks, see PHPhoto
.
To add assets to the newly created asset collection or change its title, use the methods listed in Modifying Asset Collections. To reference the newly created asset collection later in the same change block or after the change block completes, use the placeholder
property to retrieve a placeholder object.