Hi all,
I'm currently developing CarPlay support (iOS 11) for my audio app.
I have the entitlement and have a version up and running, which I now want to refine.
I'd like to display track numbers against playable media items just like the Music app on my CarPlay headunit does. These are nicely designed such that the track number appears where the art work would appear (ie it has it's own space) and the title and subtitle are nicely aligned to the right of it.
My app provides a datasource using the MPPlayableContentDataSource protocol, which provides media information using the method MPPlayableContentDataSource which returns an MPContentItem. There are no properties here to indicate a track number.
I have tried setting the MPMediaItemPropertyAlbumTrackNumber property on the content item, but this is not support by this class.
I can add the track number to contentItem.title property, but that doesnt display in the same tidy way the Music app does. The subtitle text is then displayed underneath the track number. Because of the different font sizes, adding spaces to the subtitle looks messy.
The only way I can think to do it is to render a track number as an image into the artwork, but there are so many things that need to be discovered about the headunit display to ensure a matching.
I can't find anything in the documentation to support this, and it seems like a pretty standard thing to want to do with an audio app!
Many thanks,
Rich