diff --git a/iphone/Maps/Classes/CarPlay/CarPlayService.swift b/iphone/Maps/Classes/CarPlay/CarPlayService.swift index e2dd41cca8..0f33e4ae62 100644 --- a/iphone/Maps/Classes/CarPlay/CarPlayService.swift +++ b/iphone/Maps/Classes/CarPlay/CarPlayService.swift @@ -38,6 +38,14 @@ final class CarPlayService: NSObject { self.interfaceController = interfaceController self.interfaceController?.delegate = self sessionConfiguration = CPSessionConfiguration(delegate: self) + // Try to use the CarPlay unit's interface style. + if #available(iOS 13.0, *) { + if sessionConfiguration?.contentStyle == .light { + window.overrideUserInterfaceStyle = .light + } else { + window.overrideUserInterfaceStyle = .dark + } + } searchService = CarPlaySearchService() let router = CarPlayRouter() router.addListener(self)