diff --git a/Sources/MapboxNavigation/CarPlayManager.swift b/Sources/MapboxNavigation/CarPlayManager.swift index ee9c3feee7f..4b523642dc8 100644 --- a/Sources/MapboxNavigation/CarPlayManager.swift +++ b/Sources/MapboxNavigation/CarPlayManager.swift @@ -1246,7 +1246,7 @@ extension CarPlayManager: CarPlayMapViewControllerDelegate { public func carPlayNavigationViewController(_ carPlayNavigationViewController: CarPlayNavigationViewController, guidanceBackgroundColorFor style: UIUserInterfaceStyle) -> UIColor? { - delegate?.carPlayNavigationViewController(self, guidanceBackgroundColor: style) + delegate?.carPlayNavigationViewController(self, guidanceBackgroundColorFor: style) } public func carPlayMapViewController(_ carPlayMapViewController: CarPlayMapViewController, diff --git a/Sources/MapboxNavigation/CarPlayNavigationViewController.swift b/Sources/MapboxNavigation/CarPlayNavigationViewController.swift index b10da6e490a..83ad10112e3 100644 --- a/Sources/MapboxNavigation/CarPlayNavigationViewController.swift +++ b/Sources/MapboxNavigation/CarPlayNavigationViewController.swift @@ -289,7 +289,7 @@ open class CarPlayNavigationViewController: UIViewController, BuildingHighlighti } } - let backgroundColor = delegate?.carPlayNavigationViewController(self, guidanceBackgroundColor: currentUserInterfaceStyle) + let backgroundColor = delegate?.carPlayNavigationViewController(self, guidanceBackgroundColorFor: currentUserInterfaceStyle) switch currentUserInterfaceStyle { case .dark: