attributeSet
The custom Spotlight attributes to associate with the entity.
Declaration
var attributeSet: CSSearchableItemAttributeSet { get }Mentioned in
Discussion
If you don’t provide a value for this property, the default implementation returns the contents of the defaultAttributeSet property. If you assign a new value to this property, the property returns your new set instead.
When you create a custom attribute set, add the contents of the defaultAttributeSet if you want to include them in your new set. The system doesn’t add the default attributes automatically.
During indexing, Spotlight indexes the values in this set together with any entity properties that have an associated indexing key. For information about how to specify entity-related attributes, see Making app entities available in Spotlight.