Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSTabView not working in NSAppearanceNamedVibrantDark Popover

When I try to put an NSTabView inside a vibrant dark Popover (as an NSPopover contentViewController's view) I get a completely black background. When I put it in a regular vibrant dark window, it works. When I put it in a vibrant light popover or window it also works.

Here's a screenshot of the result:

enter image description here

As you can see, the controls inside "go through" the black background and show the vibrancy.

like image 477
circuitlego Avatar asked Nov 01 '22 12:11

circuitlego


1 Answers

Subclass of NSTabView and override allowsVibrancy will fix it:

override var allowsVibrancy: Bool {
    return true
}
like image 110
Max Gribov Avatar answered Nov 20 '22 02:11

Max Gribov