This sample project (My App) shows how to perform from essential implementation to advanced use-cases for Core Spotlight integration through very simple and easy to understand code.
- Indexing: show your app-data in Spotlight search
- Deleting: remove your app-data from Spotlight search
- Handling: handle the user's tap on a Spotlight search item
- Continuing the Spotlight search in-app
- Custom actions for Spotlight search items
- Custom preview for Spotlight search items
Detailed blog-post: https://yugantarjain.medium.com/implement-core-spotlight-in-a-swiftui-app-859cb703f55d?source=friends_link&sk=b7a429726740266592ae51cf7e4b33d9
Essentials | Search in-app | Custom actions/preview |
---|---|---|
![]() |
![]() |
![]() |