mapbox-navigation-ios
mapbox-navigation-ios copied to clipboard
Switch to night style when Dark Mode is enabled
When Dark Mode is enabled in iOS 13 and above, NavigationViewController should default to the night style regardless of the time of day.
This guide to Dark Mode recommends using semantic colors and custom color assets, which long-term would be a superior solution to the SDK’s Style system, at least as far as colors are concerned. There is more granular control over the mode by setting UIView.overrideUserInterfaceStyle. These APIs would be more reliable than Style, but they require iOS 13 or above.
#539 would similarly switch styles when Smart Invert Colors is enabled.
/cc @mapbox/navigation-ios
User interface style is a trait that we could observe changes to.
Hey I'd like to do this as part of Hacktober. Do I need to be assigned?
To better align between iOS and CarPlay we should also consider adding switch that allows users to decide whether they want to change UI appearance whenever it changes in settings.