init(_:content:primaryAction:)
Creates a menu with a custom primary action that generates its label from a localized string resource.
Declaration
@export(implementation) nonisolated init(_ titleResource: LocalizedStringResource, @ContentBuilder content: () -> Content, primaryAction: @escaping () -> Void) where Label == TextParameters
- titleResource:
Text resource for the link’s localized title, which describes the contents of the menu.
- content:
A group of menu items.
- primaryAction:
The action to perform on primary interaction with the menu.