Skip to content

Commit 2627f93

Browse files
authored
Fixes missing CarPlay UI elements in active navigation (#3858)
The issue appeared after #3773 fix. #3773 changed the order of setup methods in CarPlayNavigationViewController.viewDidLoad(). And this order is important because views are added on top one another. The fix is to always add navigation map as the first view in hierarchy.
1 parent 5e3afc1 commit 2627f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/MapboxNavigation/CarPlayNavigationViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,8 +476,8 @@ open class CarPlayNavigationViewController: UIViewController, BuildingHighlighti
476476
navigationMapView.mapView.ornaments.options.attributionButton.visibility = .hidden
477477

478478
navigationMapView.navigationCamera.follow()
479-
480-
view.addSubview(navigationMapView)
479+
480+
view.insertSubview(navigationMapView, at: 0)
481481
navigationMapView.pinInSuperview()
482482

483483
self.navigationMapView = navigationMapView

0 commit comments

Comments
 (0)