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.
In the past development with Android, the same app was enabling it like this:
webSettings.setJavaScriptEnabled(true);
This is my code now and I am missing the option to enable javascript:
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)
}
}