I have a setup as such:
self.webView = WKWebView(frame: frame, configuration: WKWebViewConfiguration()) self.externView = UIView(frame: frame) self.externWeb
Swift 3:
DispatchQueue.global(qos: .background).async { DispatchQueue.main.async { // enter code here } }