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<S>(_ name: S, content: () -> Content) where S : StringProtocol

See Also 参照

Creating a Command Menu