transientAssetCollection(withAssetFetchResult:title:)
Creates a temporary asset collection containing the assets from the specified fetch result.
Declaration
class func transientAssetCollection(withAssetFetchResult fetchResult: PHFetchResult<PHAsset>, title: String?) -> PHAssetCollectionParameters
- fetchResult:
A fetch result containing one or more Phasset objects.
- title:
A name for the new temporary asset collection.
Return Value
A new asset collection.
Discussion
Transient asset collections 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 and want to display an arbitrary set of assets.