SwiftUI context menu trigger by left click on macOS

Viewed 1502
1 Answers

You can use a specific menu style for that type of UI. If you want to hide the indicator, just put in false.

Menu("Label") {
      Button("Buttons") { }
}
.menuStyle(BorderlessButtonMenuStyle())
.menuIndicator(.hidden)
.fixedSize() // Otherwise will be the width of your menu options.
Related