- iOS 9+
- macOS 10.11+
- Mac Catalyst 13.0+Beta
- tvOS 10+
static var type
User Library: PHAsset Source Type
The asset is part of the user’s main Photos library.
static var type
Cloud Shared: PHAsset Source Type
The asset originates from an iCloud Shared Album.
static var typei
Tunes Synced: PHAsset Source Type
The asset originates from a Mac or PC and is present on the device through iTunes sync.
Type: PHAsset Media Type
The type of the asset, such as video or audio.
Constants identifying the general type of an asset, such as image or video.
Subtypes: PHAsset Media Subtype
The subtypes of the asset, identifying special kinds of assets such as panoramic photo or high-framerate video.
Constants identifying specific variations of asset media, such as panorama or screenshot photos and time lapse or high frame rate video.
Type: PHAsset Source Type
The means by which the asset entered the user’s Photos library.
The width, in pixels, of the asset’s image or video data.
The height, in pixels, of the asset’s image or video data.
The date and time at which the asset was originally created.
The date and time at which the asset was last modified.
var location: CLLocation?
The location information saved with the asset.
var duration: Time
The duration, in seconds, of the video asset.
A Boolean value that indicates whether the user has marked the asset as a favorite.
A Boolean value that indicates whether the user has hidden the asset.
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