Instance Method

removeChildCollections(_:)

Removes the specified child collections from the collection list.

Declaration

func removeChildCollections(_ collections: NSFastEnumeration)

Parameters

collections

An array of PHCollection objects (asset collections or other collection lists) to be removed from the collection list.

Discussion

This method removes child collections from the collection list based on their identity (determined by the localIdentifier property of each collection). To remove objects at specified indexes, use the removeChildCollections(at:) method.

See Also

Modifying Collection Lists

init?(for: PHCollectionList)

Creates a request for modifying the specified collection list.

init?(for: PHCollectionList, childCollections: PHFetchResult<PHCollection>)

Creates a request for modifying the specified collection list, with a fetch result for tracking changes.

var title: String

The displayed name of the collection list.

func addChildCollections(NSFastEnumeration)

Add the specified collections as children of the collection list.

func insertChildCollections(NSFastEnumeration, at: IndexSet)

Inserts the specified collections into the collection list at the specified indexes.

func removeChildCollections(at: IndexSet)

Removes the child collections at the specified indexes from the collection list.

func replaceChildCollections(at: IndexSet, withChildCollections: NSFastEnumeration)

Replaces the child collections at the specified indexes in the collection list with the specified collections.

func moveChildCollections(at: IndexSet, to: Int)

Moves the child collections at the specified indexes in the collection list to a new index.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software