I'm adding some sort options to my macOS app that shows a list of stuff.
I'm using a Menu inside .toolbar { ToolbarItemGroup() {} } like so:
Menu { ForEach(SortOption.allCases, id: .self) { option in Toggle(isOn: Binding<Bool>( get: { userSettings.sortOption == option }, set: { newValue in if newValue { userSettings.sortOption = option } })) { Text(option.description) } } } label: { Image(systemName: "arrow.up.arrow.down") } .menuIndicator(.hidden)
Here's the result:
As you can see, the hover state / container of the label image seems to be cut off. I suspect that it's caused by .menuIndicator(.hidden) which I'm using to remove the default chevron that shows up next to the icon (it looks ugly and is too close to the icon: ).
Is it possible to remove the menu indicator while leaving the hover state container intact?