I want to use NSVisualEffectViewwith dark vibration, but in some situations the effect is too pale, so I would like to darken the background.
Here is an example application using views NSBoxto provide a darker background.

We see that the appearance of the NSBox"main" allows you to overlay the background, and the button sits happily on top of this. However, NSBoxa button with a custom appearance appears to “cut out” the background as a visual effect below.
I tried subclassing NSVisualEffectViewand overriding -drawRect:to fill it with a different color, and the result will be the same.
Is there a way to overlay vivid controls on other views?
source
share