Initializer

init(_:content:)

Creates a menu that generates its label from a localized string key.

Declaration 宣言

init(_ titleKey: LocalizedStringKey, content: () -> Content) where Label == Text
Available when Label conforms to View and Content conforms to View.

Parameters パラメータ

titleKey

The key for the link’s localized title, which describes the contents of the menu.

content

A group of menu items.

See Also 参照

Creating a Menu from Content