Menu Action Button
Acts like a button and opens the menu on a secondary gesture
Platform Compatibility
Tags
SwiftUI Code
Menu {
Button("Button 1", action: action)
Button("Button 2", systemImage: "button.vertical.left.press", action: action)
Button(action: action) {
Text("Button 3")
Text("Description 3")
}
} label: {
Text("Button 0")
} primaryAction: {
print("Button 0 tapped")
}