Post

Replies

Boosts

Views

Activity

Reply to Show spinner after user changed map region in CPPointOfInterestTemplate
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.
Jul ’22