Contents

CommandMenu

Command menus are stand-alone, top-level containers for controls that perform related, app-specific commands.

Declaration

struct CommandMenu<Content> where Content : View

Mentioned in

Overview

Command menus are realized as menu bar menus on macOS, inserted between the built-in View and Window menus in order of declaration. On iOS, iPadOS, and tvOS, SwiftUI creates key commands for each of a menu’s commands that has a keyboard shortcut.

Topics

Creating a command menu

See Also

Defining commands