A key associated with a custom attribute for a searchable item.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
Framework
- Core Spotlight
Declaration
@interface CSCustomAttributeKey : NSObject
Overview
The CSCustom
class defines a key that you can associate with a custom attribute for a searchable item. Item attributes provide metadata about the item that can be indexed and displayed to users in search results.
Although the Core Spotlight framework provides several predefined attributes, such as title and description, you can create a CSCustom
object to specify a custom attribute that makes sense in your domain.