UINavigationBar tint color does not update
问题 I am implementing a dark mode in my app. Here is my code (that I call when the screen is double tapped): if darkMode == false { UINavigationBar.appearance().tintColor = UIColor(hexString: "#3A3A3A") UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName:UIColor.whiteColor()] UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.LightContent } else { UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.Default UINavigationBar.appearance(