Skip to content

Example of an App that index data to Spotlight and then let you search them thru in-app search bar.

Notifications You must be signed in to change notification settings

MajkCajk/Spotlight-In-App-Search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Spotlight-In-App-Search

Example of an App that index data to Spotlight and then let you search them thru in app search bar.

About

There is a way that your apps content could show up in a spotlight search. You can index it in your app and put it to the spotlight framework. I found a lot of tutorials and ways how to do it (Ray Wenderlich) but I didn't found much about the other way around. Use these indexes and ios spotlight search inside my app for searching content from the app.

I did it and this is sample app that shows how to do it. BUT it has its cons and pros.

Pros

  • "Kill two birds with one stone" - Simultaneously make search in your app and put content to Spotlight.
  • Easy to implement.
  • Native.

Cons

  • Black box - There is a little of documentations about it. You don't know how fast it is.
  • Adding and removing from the stack is not certain(it's not given that it happenned)

Beware!

Usage

About

Example of an App that index data to Spotlight and then let you search them thru in-app search bar.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages