mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

Switch to night style when Dark Mode is enabled

Open 1ec5 opened this issue 6 years ago • 2 comments

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

1ec5 avatar Aug 30 '19 07:08 1ec5

User interface style is a trait that we could observe changes to.

1ec5 avatar Aug 30 '19 18:08 1ec5

Hey I'd like to do this as part of Hacktober. Do I need to be assigned?

zappycode avatar Oct 07 '19 23:10 zappycode

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.

MaximAlien avatar Sep 06 '22 17:09 MaximAlien