Returns a new custom attribute key with the specified name and properties.
- iOS 9.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- Core Spotlight
The name of the custom attribute for use as a key in a
CSSearchable. The key name must be a string that contains only ASCII characters and no punctuation other than the underscore (that is, “_”). The prefix
Item Attribute Set
A Boolean value that indicates if the attribute can be specified as a search term.
A Boolean value that indicates if the attribute should be searchable by default.
A Boolean value that indicates if duplicate values should be treated as the same value to save storage space.
A Boolean value that indicates if the attribute is likely to have multiple values, such as arrays, associated with it.
A new custom attribute key with the specified name and properties.
To create custom attribute key names, it’s recommended that you use a reverse DNS format that includes your company name and does not include the period character (“.”). For example, a key name of the form
com works well.