marinofaggiana 4 years ago
parent
commit
7ae8aee8b4
1 changed files with 1 additions and 4 deletions
  1. 1 4
      iOSClient/Main/NCMainNavigationController.swift

+ 1 - 4
iOSClient/Main/NCMainNavigationController.swift

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