init(_:image:content:)
Creates a menu that generates its label from a localized string key and image resource.
Declaration
nonisolated init(_ titleKey: LocalizedStringKey, image: ImageResource, @ViewBuilder content: () -> Content)Parameters
- titleKey:
The key for the link’s localized title, which describes the contents of the menu.
- image:
The name of the image resource to lookup.
- content:
A group of menu items.