What is WKErrorDomain error 4 from WKWebView

Question or problem in the Swift programming language: fatal error: LPWebView encounters an error: Error Domain=WKErrorDomain Code=4 “A JavaScript exception occurred” UserInfo=0x79d9c700 {NSLocalizedDescription=A JavaScript exception occurred} I encountered this error when I tried to evaluate a JavaScript function with WKWebView. I used loadHTMLString to load a template to the webview. let bundle = NSBundle.mainBundle() if […]

Continue Reading