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

# mediaSubtypes

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

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

## Discussion

See [`PHAssetMediaSubtype`](/documentation/Photos/PHAssetMediaSubtype) for possible values.

Because an asset can have more than one subtype, use these values as bit masks to identify an asset. For example, the code below tests an asset for the panorama photo subtype.

```swift
if asset.mediaType == .image && ((asset.mediaSubtypes.rawValue & PHAssetMediaSubtype.photoHDR.rawValue) != 0) {
    // Display an HDR badge in the user interface.
}
```

---

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)