I have a macOS app with a simple popover view and a NSSegmentedControl placed within it. Everything works fine, apart from the odd appearance of the segmented control. It has this weird square background when placed in the pop over view.
Is there any way to get rid of this?

Apparently, labels inside
NSSegmentedControlignore vibrancy effect.To fix it, put
NSSegmentedControlinsideNSVisualEffectViewwithmaterialset topopover.