title: iOS WKWebView Swift javascript enable
body: <p>I'm trying to develop a simple app to browse my website. However my website contains some javascript and it doesn't successfully show my website.</p>
  
  <p>In the past develop with android the same app and had to activate like this: </p>
  
  <pre><code>webSettings.setJavaScriptEnabled(true);
  </code></pre>
  
  <p>This currently my code I just have missing the option to enable javascript if somebody can help will really appreciate</p>
  
  <pre><code>import WebKit
  
  class ViewController: UIViewController {
  
    @IBOutlet weak var webView: WKWebView!
  
    override func viewDidLoad() {
      super.viewDidLoad()
      let url = URL(string: "http://132.148.136.31:8082")
      let urlRequest = URLRequest(url: url!)
  
      webView.load(urlRequest)
    }
  }
  </code></pre>