init(content:label:)
Creates a menu with a custom label.
Declaration
nonisolated init(@ViewBuilder content: () -> Content, @ViewBuilder label: () -> Label)Parameters
- content:
A group of menu items.
- label:
A view describing the content of the menu.