Correct issue where toolbar tint color could get lost in darkmode and transitioning to the background

This commit is contained in:
Maurice Parker 2019-10-23 09:03:34 -05:00
parent 17af3f28bf
commit 7448523c66
1 changed files with 2 additions and 2 deletions

View File

@ -34,10 +34,10 @@ class ThemedNavigationController: UINavigationController {
if traitCollection.userInterfaceStyle == .dark {
navigationBar.standardAppearance = UINavigationBarAppearance()
navigationBar.tintColor = view.tintColor
navigationBar.tintColor = AppAssets.primaryAccentColor
toolbar.standardAppearance = UIToolbarAppearance()
toolbar.compactAppearance = UIToolbarAppearance()
toolbar.tintColor = view.tintColor
toolbar.tintColor = AppAssets.primaryAccentColor
} else {
let navigationAppearance = UINavigationBarAppearance()
navigationAppearance.backgroundColor = AppAssets.barBackgroundColor