From f62730511bc1576e213015771f67a1f02e6ed257 Mon Sep 17 00:00:00 2001 From: Max Date: Wed, 3 Apr 2024 14:58:23 +0300 Subject: [PATCH] Fix compile errors --- Sources/MapboxNavigation/CarPlayManager.swift | 2 +- Sources/MapboxNavigation/CarPlayNavigationViewController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: