• ★ Adopt App Intents, with an AppEntity for 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 AppShortcutsProvider gives 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 Codable file) 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 IndexedEntity so 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

Documentation

Watch (WWDC26)