microsoft / FluentDarkModeKit

A library for backporting Dark Mode in iOS
MIT License
1.63k stars 125 forks source link

Tabbar can not change #86

Closed VineFiner closed 4 years ago

VineFiner commented 4 years ago

Click on the second item and refresh the theme. The bottom tabbar will not change.

levinli303 commented 4 years ago

This sounds like a bug in UIKit. I managed to reproduce with a project without FluentDarkModeKit. The setup is like this:

  1. Window's root view controller is set to UITabBarController with a UINavigationController embedded, the UINavigationController embeds another UIViewController.
  2. The UIViewController's background color is set to a non dynamic color.

Changing the window's overrideUserInterfaceStyle does not change the tabbar background.

levinli303 commented 4 years ago

Closing since it is not a bug in FluentDarkModeKit