CommandMenu
Command menus are stand-alone, top-level containers for controls that perform related, app-specific commands.
Declaration
struct CommandMenu<Content> where Content : ViewMentioned 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.