<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHCollectionList",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHCollectionList"
  },
  "title" : "PHCollectionList"
}
-->

# PHCollectionList

A group containing Photos asset collections, such as Moments, Years, or folders of user-created albums.

```
class PHCollectionList
```

## Overview

In the Photos framework, collection objects (including asset collections) do not directly reference their member objects, and there are no other objects that directly reference collection objects. To retrieve the members of a collection list, fetch them with a [`PHCollection`](/documentation/Photos/PHCollection) class method such as [`fetchCollections(in:options:)`](/documentation/Photos/PHCollection/fetchCollections(in:options:)). To find objects at the root of the collection list hierarchy (such as album folders with no parent folders), use the [`fetchTopLevelUserCollections(with:)`](/documentation/Photos/PHCollection/fetchTopLevelUserCollections(with:)) method.

> Important:
> Accessing or modifying the Photos library requires explicit authorization from the user. The first time you call one of the methods listed in the Fetching Collection Lists group, Photos automatically prompts the user for authorization. (Alternatively, you can use the ``doc://com.apple.photokit/documentation/Photos/PHPhotoLibrary`` ``doc://com.apple.photokit/documentation/Photos/PHPhotoLibrary/requestAuthorization(_:)`` method to prompt the user at a time of your choosing.)
> 
> Your app’s `Info.plist` file must provide a value for the [NSPhotoLibraryUsageDescription](https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW17) key that explains to the user why your app is requesting Photos access. Apps linked on or after iOS 10.0 will crash if this key is not present.

Like assets and asset collections, collection lists are immutable. To create, rename, or delete collection lists, or to add, remove, or rearrange members in a collection list, create a [`PHCollectionListChangeRequest`](/documentation/Photos/PHCollectionListChangeRequest) object within a photo library change block. For details on using change requests and change blocks to update the photo library, see [`PHPhotoLibrary`](/documentation/Photos/PHPhotoLibrary).

## Topics

### Fetching Collection Lists

[`fetchCollectionListsContaining(_:options:)`](/documentation/Photos/PHCollectionList/fetchCollectionListsContaining(_:options:))

Retrieves collection lists that contain the specified collection.

[`fetchCollectionLists(withLocalIdentifiers:options:)`](/documentation/Photos/PHCollectionList/fetchCollectionLists(withLocalIdentifiers:options:))

Retrieves collection lists with the specified local-device-specific unique identifiers.

[`fetchCollectionLists(with:subtype:options:)`](/documentation/Photos/PHCollectionList/fetchCollectionLists(with:subtype:options:))

Retrieves collection lists of the specified type.

[`fetchMomentLists(with:containingMoment:options:)`](/documentation/Photos/PHCollectionList/fetchMomentLists(with:containingMoment:options:))

Retrieves collection lists of the specified moment list type containing the specified moment.

[`fetchMomentLists(with:options:)`](/documentation/Photos/PHCollectionList/fetchMomentLists(with:options:))

Retrieves collection lists of the specified moment list type.

### Reading Collection List Metadata

[`collectionListType`](/documentation/Photos/PHCollectionList/collectionListType)

The type of asset collection group that the collection list represents.

[`PHCollectionListType`](/documentation/Photos/PHCollectionListType)

Major distinctions between kinds of collection list, used by the [`collectionListType`](/documentation/Photos/PHCollectionList/collectionListType) property and [`fetchCollectionLists(with:subtype:options:)`](/documentation/Photos/PHCollectionList/fetchCollectionLists(with:subtype:options:)) method.

[`collectionListSubtype`](/documentation/Photos/PHCollectionList/collectionListSubtype)

The type of asset collection grouping the collection list represents.

[`PHCollectionListSubtype`](/documentation/Photos/PHCollectionListSubtype)

Major distinctions between kinds of collection list, used by the [`collectionListSubtype`](/documentation/Photos/PHCollectionList/collectionListSubtype) property and [`fetchCollectionLists(with:subtype:options:)`](/documentation/Photos/PHCollectionList/fetchCollectionLists(with:subtype:options:)), [`fetchMomentLists(with:containingMoment:options:)`](/documentation/Photos/PHCollectionList/fetchMomentLists(with:containingMoment:options:)), and [`fetchMomentLists(with:options:)`](/documentation/Photos/PHCollectionList/fetchMomentLists(with:options:)) methods.

[`startDate`](/documentation/Photos/PHCollectionList/startDate)

The earliest creation date among all assets in the collection list.

[`endDate`](/documentation/Photos/PHCollectionList/endDate)

The latest creation date among all assets in the collection list.

[`localizedLocationNames`](/documentation/Photos/PHCollectionList/localizedLocationNames)

The names of locations grouped by the collection (an array of `NSString` objects).

### Creating Temporary Collection Lists

[`transientCollectionList(with:title:)`](/documentation/Photos/PHCollectionList/transientCollectionList(with:title:))

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

[`transientCollectionList(withCollectionsFetchResult:title:)`](/documentation/Photos/PHCollectionList/transientCollectionList(withCollectionsFetchResult:title:))

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



---

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)