<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAsset/mediaSubtypes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAsset(py)mediaSubtypes"
  },
  "title" : "mediaSubtypes"
}
-->

# mediaSubtypes

The subtypes of the asset, identifying special kinds of assets, such as panoramic photo or high-frame-rate video.

```
var mediaSubtypes: PHAssetMediaSubtype { get }
```

## Discussion

See [`PHAssetMediaSubtype`](/documentation/Photos/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:

```objc
if (asset.mediaType == PHAssetMediaTypeImage && (asset.mediaSubtypes & PHAssetMediaSubtypePhotoHDR)) {
    // display HDR badge in UI
}
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)