Example application bridging JavaScript in a WKWebView with native code.
Take html/index.html and toss that somewhere that can be retrieved via a network request.
html/index.html
Then open up the JSMessageExample project in XCode and hit Project :: Run.