# Core SpotLight in iOS

# Core-Spotlight

Objective-C

  • Create a new iOS project and add **CoreSpotlight** and **MobileCoreServices** framework to your project. enter image description here

  • Create the actual CSSearchableItem and associating the uniqueIdentifier, domainIdentifier and the attributeSet. Finally index the CSSearchableItem using [[CSSearchableIndex defaultSearchableIndex]...] as show below. enter image description here

  • OK!Test the index!
    enter image description here