1

I'm trying to develop Now playing screen in CarPlay and I've some issues with visual representation of buttons connected with commands skipForwardCommand/skipBackwardCommand

When I set property preferredIntervals (link) to standard intervals like 10, 15, 30, 60, then everything looks fine.

When I try to use different values - for instance 5, 120 then instead of skip forward/backward icon I can see next/previous track (button still works like skip forward/backward it only has bad visual representation). It works properly in iPhone notification center - instead of custom values you can see here skip forward button with plus and skip backward button with minus.

nextTrackCommand and previousTrackCommand are disabled in code.

I've seen earlier one app, which have custom intervals and has got in such case skip forward/backward icons but without any value (empty). I would like to achieve the same or similar effect.

On the attached screen, on the skip backward I've used value of 5 seconds, on the right side - standard value 30 seconds. CarPlay Now playing view

  • Can you name the app that has custom steps with buttons that render empty skip seconds icons? – fruitcoder Oct 03 '21 at 19:57
  • It's polish app called Audioteka – Jerzy Piechowiak Oct 05 '21 at 05:46
  • 1
    I downloaded the app. When I set the skip seconds backwards interval to 5s the behavior is the same as in your screenshot: the skip to previous track button is visible – fruitcoder Oct 05 '21 at 13:33
  • Well, that's strange. In general it looks like an Apple bug. Right know I've decided to use next/previous chapter button in this place and use custom buttons for my functionality in this section under seekbar. It works very well with such combination. – Jerzy Piechowiak Oct 06 '21 at 14:08
  • 1
    Yeah I use the same functionality but let the user decide which buttons are the primary ones (next to the play button) and which should be smaller in the custom buttons area. Since I only have default skip intervals they render fine next to the play button. – fruitcoder Oct 06 '21 at 21:05

0 Answers0