How do I present a Menu from a button tap in SwiftUI?

Viewed 2043

Is there a SwiftUI equivalent to "showsMenuAsPrimaryAction" in UIKit?

Edit: iOS 14 Beta 3 introduces Menu

Menu("Options") {
Button("Option 1", action: actionOne)
Button("Option 2", action: actionTwo)
}
1 Answers
Related