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

# transientCollectionList(with:title:)

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

## Declaration

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

## Parameters

- `collections`: An array of 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(withCollectionsFetchResult:title:)](photos/phcollectionlist/transientcollectionlist(withcollectionsfetchresult:title:).md)
