Contents

init(_:content:)

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

Declaration

nonisolated init(_ titleKey: LocalizedStringKey, @ViewBuilder content: () -> Content) where Label == Text

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