I am developing CarPlay app using CarPlay framework.
I use CPNowPlayingImageButton to display custom button on NowPlaying template.
https://developer.apple.com/documentation/carplay/cpnowplayingimagebutton?language=objc
Created ImageAsset image,
Then create CPNowPlayingImageButton.
UIImage* image = [UIImage imageNamed:@"carplay_heart" inBundle:[NSBundle mainBundle] compatibleWithTraitCollection:self.interfaceController.carTraitCollection];
CPNowPlayingImageButton* button = [CPNowPlayingImageButton.alloc initWithImage:image handler:^(CPNowPlayingImageButton*)
{
JPlaylistUtils::CurrentToggleFavorite(FALSE, TRUE, nil);
}];
[CPNowPlayingTemplate.sharedTemplate updateNowPlayingButtons:@[button]];

If I change Appearance at CarPlay / Settings, image is displayed as expected at first time.

But if update the button, CarPlay displays wrong image again.
I would advise you to only use one image and let CarPlay figure out light/dark mode tinting by setting the Render As to Template Image. Which sizes do your images have?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With