Post

Replies

Boosts

Views

Activity

Reply to Using menus in SwiftUI
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.
Jun ’20