Set the default appearance for a compact toolbar so that we don't end up with transparent compact toolbars occasionally

This commit is contained in:
Maurice Parker 2019-10-02 10:12:22 -05:00
parent 59143c2d8f
commit 45ae96218b
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class ThemedNavigationController: UINavigationController {
navigationBar.standardAppearance = UINavigationBarAppearance()
navigationBar.tintColor = view.tintColor
toolbar.standardAppearance = UIToolbarAppearance()
toolbar.compactAppearance = UIToolbarAppearance()
toolbar.tintColor = view.tintColor
} else {
let navigationAppearance = UINavigationBarAppearance()
@ -48,6 +49,7 @@ class ThemedNavigationController: UINavigationController {
let toolbarAppearance = UIToolbarAppearance()
toolbarAppearance.backgroundColor = UIColor.white
toolbar.standardAppearance = toolbarAppearance
toolbar.compactAppearance = toolbarAppearance
toolbar.tintColor = AppAssets.primaryAccentColor
}