Last active
February 23, 2018 09:58
-
-
Save JillevdW/860ae13417d726ab71d79cc8328c07d9 to your computer and use it in GitHub Desktop.
final setup medium webview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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