Every platform
Do these first. They pay off on every platform.
System surfaces: App Intents · Widgets · Spotlight · Controls
- ★ Adopt App Intents, with an
AppEntityfor the things in your app. Siri, Shortcuts and App Shortcuts use them. Available on every Apple OS: iOS 16, macOS 13, watchOS 9, tvOS 16 and visionOS. - ★ Ship App Shortcuts, not just intents. An
AppShortcutsProvidergives people ready-made shortcuts that work without opening your app. Name every intent and parameter like an action someone will wire into the Shortcuts app. - ★ Ship a widget, and feed it a small snapshot file, not your database. Write
what the widget shows (one small
Codablefile) into the App Group when your data changes. Widgets, the Lock Screen, Siri entities and the watch can all read that one file. Widgets run in their own process, on a tight budget. - ★ Make your entity an
IndexedEntityso it shows up in Spotlight (iOS 18, macOS 15, visionOS 2; not on watchOS or tvOS). - Intents and buttons call the same functions. A
Button(intent:)in a widget and the button in your app should run the same code, so they can't drift apart. - Write through one choke point. One function saves the snapshot, reloads the widgets and tells the watch. Every write goes through it.
- Probe your App Group with a real write. If it isn't provisioned you still get a path back, but writes are refused and widgets render empty, with no crash.
- One state, many ways to draw it. Each new platform should be a new view of the same model, never a fork of your logic. In my card game Deal Me In, solo play, pass-and-play, phones around a table and the TV all draw one table state through one coordinator.
- Build every platform on every change. A project-file change for one platform can quietly break another.
- Switch layout on the space you have, never on the device. Windows resize (iPad, Mac, Vision Pro), and the iPhone Duo folds. Ask how much room you have, not what you're running on.
References
Design
- App Shortcuts (Human Interface Guidelines)
- Siri
- Widgets
- Controls
Documentation
- App Intents
AppEntityAppShortcutsProviderIndexedEntityand Making app entities available in Spotlight- WidgetKit
ControlWidget
Watch (WWDC26)
- Discover new capabilities in the App Intents framework
- Code-along: Make your app available to Siri
- Explore advanced App Intents features for Siri and Apple Intelligence
- Build intelligent Siri experiences with App Schemas
- What's new in Shortcuts
- Best practices for integrating visual intelligence in your app
- Validate your App Intents adoption with AppIntentsTesting
- WidgetKit foundations