MenuTrigger

public final class MenuTrigger

A trigger that you can use to show the menu based on the result of some other action firing, such as the onTap or onSelect of another element.

EditingMenu { menu in
    MyRow(text: "Hello, World") {
        menu.show()
    }
} items: {
    EditingMenuItem.copying("A String")
}
  • Call this method to show the menu.

    Declaration

    Swift

    public func show()