sharedItemContentType
The file type of the item to enable the user to share items from Spotlight.
Declaration
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:) 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.