Contents

transientCollectionList(with:title:)

Creates a temporary collection list that contains the specified asset collections.

Declaration

class func transientCollectionList(with collections: [PHCollection], title: String?) -> PHCollectionList

Parameters

  • collections:

    An array of Phassetcollection objects.

  • title:

    A name for the new temporary collection list.

Return Value

A new collection list.

Discussion

Transient collection lists are not saved to local storage or iCloud and do not appear in the Photos application or other apps using the Photos framework. A transient collection can be useful if you’ve designed a UI for displaying the contents of a collection list and want to display an arbitrary set of collections.

See Also

Creating Temporary Collection Lists