CPNowPlayingImageButton always shows black button


I am trying to use SFSymbols with the newly introduced CPNowPlayingImageButton, but I am always getting the image as a black image.

Code Block
let shuffleButton = CPNowPlayingImageButton(image: UIImage(systemName: "shuffle")!) { button in
            button.isSelected = PlayerManager.shared.playMode == .random
            PlayerManager.shared.playMode = .random
}

I tried changing the color of the SFSymbol image but it didn't work at all, it always shows a black image regardless of anything else!



CPNowPlayingImageButton always shows black button
 
 
Q