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(_ name: LocalizedStringResource, @ViewBuilder content: () -> Content)