CarPlay CPGridTemplate corrupt items

For some reason, Carplay 18.x works fine, however in under certain situations in our app, Carplay 26.x breaks.

The expected grid layout should be :

However, this is what we see in some cases when we update our templates.

I have not been able to isolate the cause of this issue. Has anyone ever seen this happen on their CarPlay apps and discovered the cause?

The data sets fed into the templates are identical, the difference is in some of the timing and update order...

We found the issue.

It happens when you try to recreate an instance of the CPInterface and/or CPTemplate and re-add it to the UI tree instead of updating the Panel directly.

Hope this fix finds some more love as we spent over a week trying to identify the core issue.

CarPlay CPGridTemplate corrupt items
 
 
Q