From 502f83ba2df230f8d16ea3f6c7c5a6506e870876 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Mon, 20 Jan 2020 11:43:26 -0700 Subject: [PATCH] Set the scroll edge appearance to have the system background. Issue #1665 --- .../InteractiveNavigationController.swift | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/iOS/UIKit Extensions/InteractiveNavigationController.swift b/iOS/UIKit Extensions/InteractiveNavigationController.swift index 855b3e82d..6c5da6628 100644 --- a/iOS/UIKit Extensions/InteractiveNavigationController.swift +++ b/iOS/UIKit Extensions/InteractiveNavigationController.swift @@ -47,11 +47,15 @@ private extension InteractiveNavigationController { func configure() { isToolbarHidden = false - let navigationAppearance = UINavigationBarAppearance() - navigationAppearance.titleTextAttributes = [.foregroundColor: UIColor.label] - navigationAppearance.largeTitleTextAttributes = [.foregroundColor: UIColor.label] - navigationBar.standardAppearance = navigationAppearance - navigationBar.scrollEdgeAppearance = navigationAppearance + let navigationStandardAppearance = UINavigationBarAppearance() + navigationStandardAppearance.titleTextAttributes = [.foregroundColor: UIColor.label] + navigationStandardAppearance.largeTitleTextAttributes = [.foregroundColor: UIColor.label] + navigationBar.standardAppearance = navigationStandardAppearance + + let scrollEdgeStandardAppearance = UINavigationBarAppearance() + scrollEdgeStandardAppearance.backgroundColor = .systemBackground + navigationBar.scrollEdgeAppearance = scrollEdgeStandardAppearance + navigationBar.tintColor = AppAssets.primaryAccentColor let toolbarAppearance = UIToolbarAppearance()