From d074f0e085b1ecd9b7017d72caac26a5952ec76a Mon Sep 17 00:00:00 2001 From: Stuart Breckenridge Date: Wed, 26 Jan 2022 06:47:47 +0800 Subject: [PATCH] standard navigation bar fonts --- .../InteractiveNavigationController.swift | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/iOS/UIKit Extensions/InteractiveNavigationController.swift b/iOS/UIKit Extensions/InteractiveNavigationController.swift index 7ad5fb85b..2737cf5d1 100644 --- a/iOS/UIKit Extensions/InteractiveNavigationController.swift +++ b/iOS/UIKit Extensions/InteractiveNavigationController.swift @@ -50,27 +50,10 @@ private extension InteractiveNavigationController { let standardAppearance = UINavigationBarAppearance() standardAppearance.backgroundColor = .clear standardAppearance.shadowColor = nil - standardAppearance.titleTextAttributes = [ - .foregroundColor: UIColor.label, - .font: UIFont.systemFont(ofSize: UIFont.preferredFont(forTextStyle: .body).pointSize, weight: .heavy) - ] - standardAppearance.largeTitleTextAttributes = [ - .foregroundColor: UIColor.label, - .font: UIFont.systemFont(ofSize: UIFont.preferredFont(forTextStyle: .largeTitle).pointSize - 3, weight: .black) - ] let scrollEdgeAppearance = UINavigationBarAppearance() scrollEdgeAppearance.backgroundColor = .systemBackground - scrollEdgeAppearance.shadowColor = nil - scrollEdgeAppearance.titleTextAttributes = [ - .foregroundColor: UIColor.label, - .font: UIFont.systemFont(ofSize: UIFont.preferredFont(forTextStyle: .body).pointSize, weight: .heavy) - ] - scrollEdgeAppearance.largeTitleTextAttributes = [ - .foregroundColor: UIColor.label, - .font: UIFont.systemFont(ofSize: UIFont.preferredFont(forTextStyle: .largeTitle).pointSize - 3, weight: .black) - ] - + scrollEdgeAppearance.shadowColor = nil navigationBar.standardAppearance = standardAppearance navigationBar.scrollEdgeAppearance = scrollEdgeAppearance