---
title: "transientCollectionList(withCollectionsFetchResult:title:)"
framework: photos
role: symbol
role_heading: Type Method
path: "photos/phcollectionlist/transientcollectionlist(withcollectionsfetchresult:title:)"
---

# transientCollectionList(withCollectionsFetchResult:title:)

Creates a temporary collection list containing the asset collections in the specified fetch result.

## Declaration

```swift
class func transientCollectionList(withCollectionsFetchResult fetchResult: PHFetchResult<PHCollection>, title: String?) -> PHCollectionList
```

## Parameters

- `fetchResult`: A fetch result that contains one or more doc://com.apple.photokit/documentation/Photos/PHAssetCollection objects.
- `title`: A name for the new temporary collection list.

## Return Value

Return Value A new collection list.

## Discussion

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

- [transientCollectionList(with:title:)](photos/phcollectionlist/transientcollectionlist(with:title:).md)
