App Intents, Shortcuts, Spotlight, and system actions
App Intents turns application capabilities into typed system actions. The same create-note and search-note use cases can serve Shortcuts, Siri, Spotlight, widgets, and controls when identity and authorization are explicit.
Design the capability
- Define entities with stable IDs, concise display representations, and deterministic queries.
- Intent parameters express required input and disambiguation. The perform method calls an application use case.
- Return a useful result, dialog, or route without importing view-only state into the intent.
- Index only content the user expects to search and remove stale or unauthorized Spotlight records.
Validation boundary
No intent extension, Shortcut, Siri invocation, Spotlight index, entitlement, language model interaction, or device run occurred.
Series navigation
- Previous: Part 97: WidgetKit and Live Activities
- Next: Part 99: CloudKit, iCloud containers, sharing, and sync
- Series index: Zero to iOS Hero