The subtypes of the asset, identifying special kinds of assets such as panoramic photo or high-framerate video.
- iOS 8+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 10+
PHAssetMediaSubtype for possible values.
Because an asset may have more than one subtype, you use these values as bit masks to identify an asset. For example, the code below tests an asset for the panorama photo subtype:
Reading Asset Metadata
The type of the asset, such as video or audio.
Constants identifying the general type of an asset, such as image or video.
Constants identifying specific variations of asset media, such as panorama or screenshot photos and time lapse or high frame rate video.
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 location information saved with the asset.
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.
A Boolean value that indicates whether the user has chosen to hide to the sync failure message.