Initializer

init(_:content:)

Creates a new menu for a collection of app-specific commands, inserted in the standard location for app menus (after the View menu, in order with other menus declared without an explicit location).

Declaration 宣言

init(_ name: Text, content: () -> Content)

See Also 参照

Creating a Command Menu