-
Notifications
You must be signed in to change notification settings - Fork 190
Description
Environment
- Xcode version: Version 26.2 (17C52)
- iOS version: 26.2
- Devices affected: iPhone 15
- Maps SDK Version: v11.17.0
Observed behavior and steps to reproduce
Upgrade Mapbox Maps iOS SDK from v11.16.1 to v11.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
}
The app can display maps on the iOS device (iPhone 15 with iOS 26.2) 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 an empty background.
Expected behavior
With versions up to and including v11.16.1, the app displays maps on the iOS device (iPhone 15 with iOS 26.2), 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 v11.17.0. That is the maps are displayed on all three windows.
Notes / preliminary analysis
- 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 v11.16.1 (no other changes) fixes the problems.
- Issue also occurs in v11.18.0-beta.1.
- The Mapbox examples (https://github.com/mapbox/mapbox-maps-ios/tree/main/Sources/Examples/All%20Examples/CarPlay) do not work in v11.17.0 (but are okay in v11.16.1)
Additional links and references
None.