marinofaggiana 4 năm trước cách đây
mục cha
commit
32eaf8d9dd
1 tập tin đã thay đổi với 10 bổ sung10 xóa
  1. 10 10
      iOSClient/Main/NCMainNavigationController.swift

+ 10 - 10
iOSClient/Main/NCMainNavigationController.swift

@@ -37,20 +37,20 @@ class NCMainNavigationController: UINavigationController {
                   
         if #available(iOS 13.0, *) {
             
-            var navBarAppearance = UINavigationBarAppearance()
+            var appearance = UINavigationBarAppearance()
             
-            navBarAppearance.configureWithOpaqueBackground()
-            navBarAppearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor : NCBrandColor.shared.textView]
-            navBarAppearance.backgroundColor = NCBrandColor.shared.backgroundView
+            appearance.configureWithOpaqueBackground()
+            appearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor : NCBrandColor.shared.textView]
+            appearance.backgroundColor = NCBrandColor.shared.backgroundView
             
-            navBarAppearance = UINavigationBarAppearance()
+            appearance = UINavigationBarAppearance()
             
-            navBarAppearance.configureWithOpaqueBackground()
-            navBarAppearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor : NCBrandColor.shared.textView]
-            navBarAppearance.backgroundColor = NCBrandColor.shared.tabBar
+            appearance.configureWithOpaqueBackground()
+            appearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor : NCBrandColor.shared.textView]
+            appearance.backgroundColor = NCBrandColor.shared.tabBar
 
-            navigationBar.scrollEdgeAppearance = navBarAppearance
-            navigationBar.standardAppearance = navBarAppearance
+            navigationBar.scrollEdgeAppearance = appearance
+            navigationBar.standardAppearance = appearance
             
         } else {