init(_:image:content:)
Creates a menu that generates its label from a localized string resource and image resource.
Declaration
@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource, image: ImageResource, @ContentBuilder content: () -> Content)Parameters
- titleResource:
Text resource 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.