CarPlay CPGridTemplate Does Not Work According To The Documentation

Dear Apple,

I am currently working on a project related to the CarPlay framework and I have stuck to the problem that CPGridTemplate does not work as you have written in documentation

https://developer.apple.com/documentation/carplay/cpgridtemplate.

"When there are more than four buttons, the template balances the display of the buttons betweem two rows."

I need exact the same behavior, to have only four elements in a row. However, now it can fit up to 8 images in a row if the text below the button is short. When you keep adding more text, the grid buttons move one by one to the second row. And if there are too many text the grid can go to the third row.

  1. Why it is not strictly aligning the buttons 4 to 4
  2. If I want an exact number of buttons in a row, how can I achieve it? Why should I depend on the text size to move my grid buttons to the next row?
Post not yet marked as solved Up vote post of Abbas_99 Down vote post of Abbas_99
669 views

Replies

did you ever solve this issue?