Initializer

init(_:content:)

Creates an instance of MenuButton with a given title and content to be presented to the user.

Declaration 宣言

init<S>(_ title: S, content: () -> Content) where S : StringProtocol
Available when Label is Text and Content conforms to View. LabelTextであるそしてContentViewに準拠する場合に利用可能です。

Parameters パラメータ

title

The title of self, describing its purpose.

content

The content to present to the user when the MenuButton is interacted with.

See Also 参照

Creating a Menu Button メニューボタンを作成する