marinofaggiana hace 6 años
padre
commit
ba332cb4fe
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      iOSClient/Login/NCLoginWeb.swift

+ 4 - 1
iOSClient/Login/NCLoginWeb.swift

@@ -42,7 +42,10 @@ class NCLoginWeb: UIViewController {
     override func viewDidLoad() {
         super.viewDidLoad()
         
-        webView = WKWebView(frame: CGRect.zero)
+        let config = WKWebViewConfiguration()
+        config.websiteDataStore = WKWebsiteDataStore.nonPersistent()
+
+        webView = WKWebView(frame: CGRect.zero, configuration: config)
         webView!.navigationDelegate = self
         view.addSubview(webView!)
         webView!.translatesAutoresizingMaskIntoConstraints = false