Understanding the App Intents concept
We first encountered App Intents in Chapter 1 and then in Chapter 5, when we discussed WidgetKit. But do we really understand the concept of App Intents? Let’s get a short background about Apple’s efforts to integrate AI deeply inside the system across many apps, including third-party apps.
To implement this integration, we need to create an API for our app that exposes the app’s core content and main actions. For example, a to-do app can create an API that lets Siri or other system components create a new task, complete an existing task, or pull the list of tasks stored in core data. A delivery app can have an API that returns an answer to whether the delivery services are now open or at what time the delivery arrives.
This API, called App Intents, is our way of exposing our app’s main use cases and content to the world. It’s one of the tools we use to integrate our app with Apple Intelligence as well.
...