macOS Platform Patterns Window Management Three scene types for Mac apps: Menu Bar Customization (CommandMenu + FocusedValue) CommandMenu closures run at the App scene level — outside the view hierarchy. They CANNOT access view @State directly. Use @FocusedValue to bridge view state to menu actions. Rules: - ALWAYS define FocusedValues key using macro - ALWAYS use on the active view to publish state - ALWAYS consume via in the App struct - ALWAYS on every menu item — menus are active even when no view is focused - Using empty closures on CommandMenu buttons is unacceptable — every action must…