First of all, thank you for you reply! understood!
Will the init method for the template change in iOS 16? Question if i distribute my app now with iOS 15.5 in mind once iOS 16 available, does it mean that "no tab without buttons" behaviour will be automatically enforced? will in need to create a new build or put some @available(iOS 16, *) conditions?
Thank you!
Post
Replies
Boosts
Views
Activity
Well, it's a late reply but still. As per the documentation there are no loading indicators in CarPlay templates. However you can use a trick:
Create an array with only one almost empty CPPointOfInterest and set it's location to current user location(or some random location in the host country). Give it a title like "Loading.....", set the rest of the attributes to nil. like this:
let loadingPoI: [CPPointOfInterest] = [CPPointOfInterest(location: loadingItem, title: "Loading...", subtitle: nil, summary: nil, detailTitle: nil, detailSubtitle: nil, detailSummary: nil, pinImage: nil)]
Use setter method to update your template every time before you start your lengthy calls.
template.setPointsOfInterest(loadingPoI, selectedIndex: Foundation.NSNotFound)
so your users will see "Loading..." and some location on the map displayed, whilst they are waiting for results.