Initializer

init(_:content:)

Creates a new menu with a localized name 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(_ nameKey: LocalizedStringKey, content: () -> Content)

See Also 参照

Creating a Command Menu