AVPlayerView with .inline controlsStyle macOS 26

My audio app shows a control bar at the bottom of the window. The controls show nicely, but there is a black "slab" appearing behind the inline controls, the same size as the playerView. Setting the player view background color does nothing:

playerView.wantsLayer = true playerView.layer?.backgroundColor = NSColor.clear.cgColor

How can I clear the background?

If I use .floating controlsStyle, I don't get the background "slab".

AVPlayerView with .inline controlsStyle macOS 26
 
 
Q