     }
 }
 
-extension ViewController : WKNavigationDelegate {
+extension ViewController: WKNavigationDelegate {
     func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
-        print("didFinish navigation:");
+        print("didFinish navigation:")
     }
 }
-
-
-
-

        super.viewDidLoad()

        title = "WKWebView"
        webView.navigationDelegate = self;

        // Add addScriptMessageHandler in javascript: window.webkit.messageHandlers.MyObserver.postMessage()
        webView.configuration.userContentController.add(self, name: "MyObserver")


// Wrap the WKWebView webview to allow IB use

class MyWebView: WKWebView {
    required init?(coder: NSCoder) {
        let configuration = WKWebViewConfiguration()
        let controller = WKUserContentController()
        configuration.userContentController = controller
        super.init(frame: CGRect.zero, configuration: configuration)
    }
}
