NSTabView not working in NSAppearanceNamedVibrantDark Popover

When I try to put an NSTabView inside a bright dark Popover (like the NSPopover contentViewController), I get a completely black background. When I put it in an ordinary bright dark window, it works. When I put it in a bright light or window, it also works.

Here is a screenshot of the result:

enter image description here

As you can see, the controls inside “pass” on a black background and show vibration.

+4
source share
1 answer

Subclassing NSTabViewand override allowsVibrancywill fix this:

override var allowsVibrancy: Bool {
    return true
}
0
source

Source: https://habr.com/ru/post/1568856/


All Articles