Enumeration

PHAssetCollectionSubtype

Minor distinctions between kinds of asset collections, used by the assetCollectionSubtype property and the fetchAssetCollections(with:subtype:options:) method.

Declaration

enum PHAssetCollectionSubtype : Int

Topics

User Album Types

case albumRegular

An album created in the Photos app.

case albumSyncedEvent

An Event synced to the device from iPhoto.

case albumSyncedFaces

A Faces group synced to the device from iPhoto.

case albumSyncedAlbum

An album synced to the device from iPhoto.

case albumImported

An album imported from a camera or external storage.

Cloud Album Types

case albumMyPhotoStream

The user’s personal iCloud Photo Stream.

case albumCloudShared

An iCloud Shared Photo Stream.

Smart Album Types

case smartAlbumGeneric

A smart album of no more specific subtype.

case smartAlbumPanoramas

A smart album that groups all panorama photos in the photo library.

case smartAlbumVideos

A smart album that groups all video assets in the photo library.

case smartAlbumFavorites

A smart album that groups all assets that the user has marked as favorites.

case smartAlbumTimelapses

A smart album that groups all time-lapse videos in the photo library.

case smartAlbumAllHidden

A smart album that groups all assets hidden from the Moments view in the Photos app.

case smartAlbumRecentlyAdded

A smart album that groups assets that were recently added to the photo library.

case smartAlbumBursts

A smart album that groups all burst photo sequences in the photo library.

case smartAlbumSlomoVideos

A smart album that groups all Slow-Mo videos in the photo library.

case smartAlbumUserLibrary

A smart album that groups all assets that originate in the user’s own library (as opposed to assets from iCloud Shared Albums).

case smartAlbumSelfPortraits

A smart album that groups all photos and videos captured using the device’s front-facing camera.

case smartAlbumScreenshots

A smart album that groups all images captured using the device’s screenshot function.

case smartAlbumDepthEffect

A smart album that groups all images captured using the Depth Effect camera mode on compatible devices.

case smartAlbumLivePhotos

A smart album that groups all Live Photo assets.

case smartAlbumAnimated

A smart album that groups all image animation assets.

case smartAlbumLongExposures

A smart album that groups all Live Photo assets where the Long Exposure variation is enabled.

Wildcard Search

case any

A bit mask representing all possible subtypes.

See Also

Reading Asset Collection Metadata

var assetCollectionType: PHAssetCollectionType

The type of the asset collection, such as an album or a moment.

enum PHAssetCollectionType

Major distinctions between kinds of asset collections, used by the assetCollectionType property and the fetchAssetCollectionsContaining(_:with:options:) and fetchAssetCollections(with:subtype:options:) methods.

var assetCollectionSubtype: PHAssetCollectionSubtype

The subtype of the asset collection.

var estimatedAssetCount: Int

The estimated number of assets in the asset collection.

var startDate: Date?

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

var endDate: Date?

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

var approximateLocation: CLLocation?

A location representing those of all assets in the collection.

var localizedLocationNames: [String]

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software