+29
−1
Loading
Replacing the .newItem command group to free ⌘N also dropped SwiftUI's
"Nouvelle fenêtre" item — the only way back once the main window was
closed, since the Fenêtre menu merely lists already-open windows. The app
stayed alive in the Dock with no reachable UI (App Review, guideline 4).
Give the WindowGroup an id, list it in the Fenêtre menu (⌘0), and handle
applicationShouldHandleReopen so the Dock icon brings the window back.
Co-Authored-By:
Claude Opus 5 <noreply@anthropic.com>