As far as I can see, there's no way to display SwiftUI context menus without a long press, and there's no other SwiftUI UIMenu equivalent.
SwiftUI's .contextMenus do seem to get pretty far, perhaps even sharing an implementation with UIMenu, but I would also love to see the ability to display them with a button tap. Perhaps some form of programmatic way to trigger them in a Button, analogous to UIControl's new .showsMenuAsPrimaryAction - https://developer.apple.com/documentation/uikit/uicontrol/3601223-showsmenuasprimaryaction.
Post
Replies
Boosts
Views
Activity
Yay, SwiftUI Menu on iOS and iPadOS just got added in beta 3: (docs link - https://developer.apple.com/documentation/swiftui/menu?changes=latest_beta)