How to invert labels of NSView nested in NSStatusItem?

I add subviews into NSStatusItem using the following code:
statusItem?.button?.addSubview(SomeNSView)

When statusItem is clicked/highlighted the inner NSView labels are still black.

How can I invert them for Light appearance?

Answered by krq in 659532022
Had to add needsDisplay = true

del please
Accepted Answer
Had to add needsDisplay = true

del please
How to invert labels of NSView nested in NSStatusItem?
 
 
Q