Initializer

init(content:label:primaryAction:)

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

Declaration 宣言

init(content: () -> Content, label: () -> Label, primaryAction: @escaping () -> Void)
Available when Label conforms to View and Content conforms to View.

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