Contents

defaultAttributeSet

The default Spotlight attributes to associate with an entity.

Declaration

var defaultAttributeSet: CSSearchableItemAttributeSet { get }

Discussion

Use this property to get the default attributes for any entity. This attribute set contains the title value taken from the entity’s displayRepresentation property. If the display representation also provides values for the subtitle and image, this attribute set contains those values too.

If you create a custom attribute set for the attributeSet property, add these default attributes in the new set you create.

See Also

Specifying entity-related attributes