recipe
menubar
Scene-level commands via CommandMenu.
menubarcommandskeyboard-shortcutsmenu-barguidance

On iPad
The same installed source at a regular width. It adapts its layout without a separate design.


Install
Nothing to install
Copy the snippet below. The native API is the whole treatment.
Usage
WindowGroup {
RootView()
}
.commands {
CommandMenu("Account") {
Button("Sign Out") { }
.keyboardShortcut("q", modifiers: [.command, .shift])
}
}Why native is enough
commands on WindowGroup + CommandMenu, shortcuts. iPadOS/macOS: menu bar; iPhone: toolbar Menu. Commands = Scene modifier, not view; MUST be on scene, or no compile.
Accessibility contract
- Menu bar commands: keyboard shortcuts, full keyboard access on iPadOS/macOS.
- iPhone toolbar Menu: labeled control, same buttons.
Details
| Kind | recipe |
| Version | 0.1.0 |
| Platforms | iOS 26.0+ |
| Dependencies | none |
| Source | none (native guidance) |