<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentTypeTree",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Spotlight",
      "CoreSpotlight"
    ],
    "preciseIdentifier" : "c:objc(cs)CSSearchableItemAttributeSet(py)contentTypeTree"
  },
  "title" : "contentTypeTree"
}
-->

# contentTypeTree

An attribute type that identifies a custom hierarchy of types to describe the attributes of your item.

```
var contentTypeTree: [String]? { get set }
```

## Discussion

For example, the [`contentTypeTree`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentTypeTree) for an item whose [`contentType`](/documentation/CoreSpotlight/CSSearchableItemAttributeSet/contentType) is `public.m3u-playlist` should include `public.m3u-playlist` and `public.playlist`.

---

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)