Skip to content

Instantly share code, notes, and snippets.

@JillevdW
Last active February 23, 2018 09:58
Show Gist options
  • Save JillevdW/860ae13417d726ab71d79cc8328c07d9 to your computer and use it in GitHub Desktop.
Save JillevdW/860ae13417d726ab71d79cc8328c07d9 to your computer and use it in GitHub Desktop.
final setup medium webview
override func loadView() {
super.loadView()
let contentController = WKUserContentController()
contentController.add(self, name: "callback")
let config = WKWebViewConfiguration()
config.userContentController = contentController
webview = WKWebView(frame: webview.frame, configuration: config)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment