I\'m loading a javascript which is in my App, the script will try to find a solution, which can takes some time. I don\'t want to wait more than 5 seconds for that solution, in
Another UIWebView delegate func is missing in your code. You may want to add timer2.invalidate() in
timer2.invalidate()
func webView(_ webView: UIWebView, didFailLoadWithError error: NSError)