-
Notifications
You must be signed in to change notification settings - Fork 327
Description
Mapbox Navigation SDK version
v3.17.0
Steps to reproduce
Upgrade Mapbox Navigation iOS SDK from v3.16.1 to v3.17.0. Test the following code snippets.
Create a very simple SwiftUI map view:
struct Example: View {
@State var viewport: Viewport = .followPuck(zoom: 13, bearing: .constant(0))
var body: some View {
MapReader { _ in
Map(viewport: $viewport) {
Puck2D(bearing: .heading)
.showsAccuracyRing(true)
}
.mapStyle(.outdoors)
.ignoresSafeArea()
}
}
}
In the CarPlay instrument cluster delegate, display the map view:
func templateApplicationInstrumentClusterScene(_ templateApplicationInstrumentClusterScene: CPTemplateApplicationInstrumentClusterScene, didConnect instrumentClusterController: CPInstrumentClusterController) {
let example = Example()
let contentViewController = UIHostingController(rootView: example)
contentViewController.sizingOptions = .intrinsicContentSize
contentViewController.safeAreaRegions = []
instrumentClusterViewController = contentViewController
instrumentClusterController.delegate = self
}
Expected behavior
With versions up to and including v3.16.1, the app displays maps on the iOS device (iPhone 15 with iOS 26.1), the main CarPlay device and on the CarPlay Instrument Cluster. This functionality has been working without issue for a couple of years.
Expected behavior is for this to work with v3.17.0. That is the maps are displayed on all three windows.
Actual behavior
With version v3.17.0, the app can display maps on the iOS device (iPhone 15 with iOS 26.1) and the main CarPlay device. On the CarPlay Instrument Cluster, only the ornaments are displayed (e.g., scale, logo). No actual map is displayed, only a white background.
Notes:
- Changing the map style does not change this.
- No errors are logged.
- Tested on the CarPlay Simulator and a real vehicle, both with Instrument Cluster.
- Reverting to v3.16.1 (no other changes) fixes the problems.
Is this a one-time issue or a repeatable issue?
repeatable