mapbox / mapbox/mapbox-navigation-ios

Support for SwiftUI with CarPlay – TripProgress UI not showing

Open
#4,768 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
918
Forks
326
Avg merge
1h 16m
Merged PRs (30d)
3

Description

Hi,

Has anyone successfully implemented CarPlay support using SwiftUI?

I'm currently integrating Mapbox Navigation in a SwiftUI-based app. Everything works fine on iPhone, including the TripProgress UI (ETA, distance remaining, etc.), but on CarPlay, the same UI does not appear, even though navigation is active and routing works.

I'm using the CarPlayManager as documented, and CarPlay connects correctly (the delegate is set and invoked), but the trip summary elements are missing.

If anyone has experience or an example of integrating CarPlay with SwiftUI (even partially), I’d greatly appreciate your insight!

Even a minimal working SwiftUI example would be extremely helpful.

Thanks in advance

See screenshots.

![Image](https://github.com/user-attachments/assets/afeef97c-8766-4d45-a3d6-6663e429d872)

![Image](https://github.com/user-attachments/assets/78d53521-721b-48cc-8205-f1030a67e040)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the documented CarPlayManager integration and the SwiftUI/CarPlay setup described in the issue. Compare the working iPhone TripProgress configuration with the CarPlay path, then establish a minimal reproducible example; done means the TripProgress summary appears in CarPlay or the limitation is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.