Creating Context-Aware Apps with iOS App Intents
summary
App Intents exposes app actions to Shortcuts, Spotlight, widgets and Apple Intelligence by defining AppIntent types with a perform method that returns an IntentResult, creating compact AppEntity/IndexedEntity views of expensive models, and calling CSSearchableIndex when creating items so they immediately appear in Spotlight. Example actions: getCaloriesBurned returns a dialog, createLogEntry uses openAppWhenRun to deep‑link into the app, and adding assistantIntent/assistantEntity macros makes entities available to Apple Intelligence and VoiceOver.
AI-written summary · about
chapters (10)
- 0:00Context-aware apps intro
- 1:49App Intents overview
- 3:55App Intents building blocks
- 5:41Code: Create App Intent
- 8:30Open app via shortcut
- 9:34Pass data via intents
- 10:37Index entities for Spotlight
- 13:52Entities for Apple Intelligence
- 15:17Example: Event intent with indexing
- 17:24App Intents benefits








