transientCollectionList(withCollectionsFetchResult:title:)
Creates a temporary collection list containing the asset collections in the specified fetch result.
Declaration
class func transientCollectionList(withCollectionsFetchResult fetchResult: PHFetchResult<PHCollection>, title: String?) -> PHCollectionListParameters
- fetchResult:
A fetch result that contains one or more 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.