Removes the specified assets from the asset collection.
SDKs
- iOS 8+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 10+
Framework
- Photos
Declaration
func removeAssets(_ assets: NSFast Enumeration)
Parameters
assets
An array of
PHAsset
objects to be removed from the asset collection.
Discussion
This method removes assets from the collection based on their identity (determined by the local
property of each asset). To remove objects at specified indexes, use the remove
method.
Note
Transient asset collections (such as those created with the transient
method) do not support adding or removing content.