marinofaggiana 4 years ago
parent
commit
32eaf8d9dd
1 changed files with 10 additions and 10 deletions
  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 {