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

# sharedItemContentType

The file type of the item to enable the user to share items from Spotlight.

```
var sharedItemContentType: UTType? { get set }
```

## Discussion

Core Spotlight uses this property to determine the correct type identifier to pass to the [`fileURL(for:itemIdentifier:typeIdentifier:inPlace:)`](/documentation/CoreSpotlight/CSSearchableIndexDelegate/fileURL(for:itemIdentifier:typeIdentifier:inPlace:)) method.

Spotlight enables sharing the item even if your app doesn’t set sharedItemContentType, but does support drag and drop for URL-backed types. Similarly, Spotlight enables copying items if your app supports drag and drop of Core Spotlight items.

---

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)