- iOS 9+
- macOS 10.11+
- Mac Catalyst 13.0+
- 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.
Sync Failure Hidden: Bool
A Boolean value that indicates whether the user has chosen to hide to the sync failure message.