Skip to content

Instantly share code, notes, and snippets.

@dobreandl
Created June 13, 2018 08:21
Show Gist options
  • Save dobreandl/2477fb70f9f1ec6c05b13420076b9334 to your computer and use it in GitHub Desktop.
Save dobreandl/2477fb70f9f1ec6c05b13420076b9334 to your computer and use it in GitHub Desktop.
func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) {
if (message.name == “notification_name”) {
print("Page changed")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment