marinofaggiana 4 жил өмнө
parent
commit
7ae8aee8b4

+ 1 - 4
iOSClient/Main/NCMainNavigationController.swift

@@ -37,14 +37,11 @@ class NCMainNavigationController: UINavigationController {
                   
                   
         if #available(iOS 13.0, *) {
         if #available(iOS 13.0, *) {
             
             
-            var appearance = UINavigationBarAppearance()
+            let appearance = UINavigationBarAppearance()
             
             
             appearance.configureWithOpaqueBackground()
             appearance.configureWithOpaqueBackground()
             appearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor : NCBrandColor.shared.textView]
             appearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor : NCBrandColor.shared.textView]
             appearance.backgroundColor = NCBrandColor.shared.backgroundView
             appearance.backgroundColor = NCBrandColor.shared.backgroundView
-            
-            appearance = UINavigationBarAppearance()
-            
             appearance.configureWithOpaqueBackground()
             appearance.configureWithOpaqueBackground()
             appearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor : NCBrandColor.shared.textView]
             appearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor : NCBrandColor.shared.textView]
             appearance.backgroundColor = NCBrandColor.shared.tabBar
             appearance.backgroundColor = NCBrandColor.shared.tabBar