macOS with SwiftUI
A Mac app is more than an enlarged touch interface. Windows, menus, commands, settings, tables, files, toolbars, keyboard focus, and precise selection are primary product surfaces.
Design the boundary
- DocumentGroup can own durable documents while each window owns selection, inspectors, navigation, and interaction state.
- Expose create, search, favorite, export, and navigation through standard menus and keyboard shortcuts.
- Tables support sortable columns and multiple selection. Settings hold app-wide preferences, not document data.
- Use a focused AppKit adapter when a mature native control is missing. Keep AppKit types outside the shared domain.
Validation boundary
The scene design requires a macOS target and current SDK. It was not compiled or exercised here.
Series navigation
- Previous: Part 88: iPadOS, multitasking, pointer, keyboard, Pencil, and documents
- Next: Part 90: AppKit, Mac Catalyst, and framework choice
- Series index: Zero to iOS Hero