mediaSubtypes
The subtypes of the asset, identifying special kinds of assets, such as panoramic photo or high-frame-rate video.
Declaration
var mediaSubtypes: PHAssetMediaSubtype { get }Discussion
See 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:
if (asset.mediaType == PHAssetMediaTypeImage && (asset.mediaSubtypes & PHAssetMediaSubtypePhotoHDR)) {
// display HDR badge in UI
}