---
title: attributeSet
framework: appintents
role: symbol
role_heading: Instance Property
path: appintents/indexedentity/attributeset
---

# attributeSet

The custom Spotlight attributes to associate with the entity.

## Declaration

```swift
var attributeSet: CSSearchableItemAttributeSet { get }
```

## Mentioned in

Making app entities available in Spotlight

## Discussion

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.

## See Also

### Specifying entity-related attributes

- [defaultAttributeSet](appintents/indexedentity/defaultattributeset.md)
