From 45ae96218baddce22ec8f3e5a0e1bf275d635831 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 2 Oct 2019 10:12:22 -0500 Subject: [PATCH] Set the default appearance for a compact toolbar so that we don't end up with transparent compact toolbars occasionally --- iOS/UIKit Extensions/ThemedNavigationController.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iOS/UIKit Extensions/ThemedNavigationController.swift b/iOS/UIKit Extensions/ThemedNavigationController.swift index 1214f9fe2..979d83b78 100644 --- a/iOS/UIKit Extensions/ThemedNavigationController.swift +++ b/iOS/UIKit Extensions/ThemedNavigationController.swift @@ -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 }