Instance Property

estimatedAssetCount

The estimated number of assets in the asset collection.

Declaration

var estimatedAssetCount: Int { get }

Discussion

This count may not match the current number of assets in the collection. To get the most recent count, fetch the collection’s assets with the fetchAssets(in:options:) method and read the count property of the fetch result.

If asset count information is not available for the collection, this property’s value is NSNotFound.

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.

enum PHAssetCollectionSubtype

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

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).