Instance Property

approximateLocation

A location representing those of all assets in the collection.

Declaration

var approximateLocation: CLLocation? { get }

Discussion

The Photos app automatically creates moments to group assets by time and location. A moment can contain photos from several locations in close proximity. In such cases, this property describes the general area containing the locations of all assets in the moment.

This property applies only to asset collections whose type is PHAssetCollectionType.moment. For other asset collection types, this property’s value is nil.

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