Initializer

init(content:label:)

Creates a menu with a custom label.

Declaration 宣言

init(content: () -> Content, label: () -> Label)
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.

See Also 参照

Creating a Menu from Content