I have a gear button on my view, when user click it I want to show a menu of buttons. It seems the https://developer.apple.com/documentation/swiftui/view/contextmenu(menuitems:) is designed for this task but only right click can trigger the context menu.
How can I trigger the contextMenu by left-click on macOS? Thanks!
Menubut the hit area of the Menu is a bar and I want to trigger the menu only by clicking the gear icon itself.