CPNowPlayingShuffleButton
A button for cycling through the available shuffle modes.
Declaration
@MainActor class CPNowPlayingShuffleButtonOverview
CPNowPlayingShuffleButton is a concrete subclass of CPNowPlayingButton. Use the button’s handler to invoke your existing functionality for cycling through shuffle modes, using the same MPChangeShuffleModeCommand that you provide to MPRemoteCommandCenter.
CarPlay uses MPRemoteCommandCenter to observe changes to the shuffle mode and updates the button’s appearance accordingly.