• ★ One model per window, and menus that find it. Each window owns its own model and publishes it with focusedSceneValue. Menu commands in .commands read the frontmost window's model with @FocusedValue. It takes about ten lines.
  • ★ Files are a front door. File › Open… (⌘O) through fileImporter, and drag-and-drop that accepts file URLs (more than one) through the same code path. Picker, ⌘O and drop should all end in one loader.
  • ★ Drag out, too. People expect to drag your result onto the desktop or into another app.
  • ★ Keyboard shortcuts live in the menus, not only on buttons. A shortcut on a button can't be found in the menu bar.
  • Settings is a ⌘, window (a Settings scene), not a sheet over your content.
  • Give windows a real minimum size with .windowResizability(.contentMinSize), or people can drag the window smaller than its content.
  • The sandbox: fileImporter needs user-selected-file read access, and every read of a URL you were handed (dropped files too) needs security-scoped access.
  • Ask for less. Saving to Photos works with add-only access (.addOnly).
  • Swift 6 trap: with default MainActor isolation, a Photos performChanges closure written inline inherits @MainActor and traps when Photos calls it off the main thread. Build the closure in a nonisolated function that returns a @Sendable closure.
  • Widgets and Controls (Controls from macOS 26). Your iPhone app's widgets can show up on the Mac even if you have no Mac app (WidgetKit's iPhoneWidgetsOnMac location, iOS 17).
  • Keep the engine free of UI. A package with no UIKit, AppKit or SwiftUI import (render to CGImage, show with Image(decorative:scale:)) is what makes the Mac cheap.

First test: run your iPad app on an Apple silicon Mac and list everything that feels un-Mac. That's your to-do list.

References

Design

Documentation

Watch