Contents

init(content:label:primaryAction:)

Creates a menu with a custom primary action and custom label.

Declaration

nonisolated init(@ViewBuilder content: () -> Content, @ViewBuilder label: () -> Label, primaryAction: @escaping () -> Void)

Parameters

  • content:

    A group of menu items.

  • label:

    A view describing the content of the menu.

  • primaryAction:

    The action to perform on primary interaction with the menu.

See Also

Creating a menu with a primary action