Browse Source

webview color

Marino Faggiana 8 years ago
parent
commit
4fb01d7f8e

+ 5 - 2
iOSClient/Library/SwiftWebVC/SwiftModalWebVC.swift

@@ -77,9 +77,12 @@ public class SwiftModalWebVC: UINavigationController {
             doneButton.tintColor = colorText
             webViewController.buttonColor = colorText
             webViewController.titleColor = colorText
-            UINavigationBar.appearance().barTintColor = color
+            
             self.navigationBar.isTranslucent = false
-            self.toolbar.backgroundColor = color
+            UINavigationBar.appearance().barTintColor = color
+            
+            self.toolbar.isTranslucent = false
+            self.toolbar.barTintColor = color
         }
         
         if (doneButtonHide == false) {

+ 1 - 1
iOSClient/Library/SwiftWebVC/SwiftWebVC.swift

@@ -152,7 +152,7 @@ public class SwiftWebVC: UIViewController {
         }
         else if (UIDevice.current.userInterfaceIdiom == UIUserInterfaceIdiom.pad) {
             self.navigationController?.setToolbarHidden(true, animated: true)
-        }            
+        }        
     }
     
     override public func viewWillDisappear(_ animated: Bool) {