<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetCollection/transientAssetCollection(with:title:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetCollection(cm)transientAssetCollectionWithAssets:title:"
  },
  "title" : "transientAssetCollection(with:title:)"
}
-->

# transientAssetCollection(with:title:)

Creates a temporary asset collection containing the specified assets.

```
class func transientAssetCollection(with assets: [PHAsset], title: String?) -> PHAssetCollection
```

## Parameters

`assets`

An array of [`PHAsset`](/documentation/Photos/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 app 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)