This is a minimal reproduction of WKWebView specific behaviors around Javascript injection, using evaluateJavascript
or userContentController.addUserScript
.
Most of where I'm attempting to illustrate the differences between these two lives here: https://github.com/saranrapjs/jeffs-webview/blob/main/Shared/ContentView.swift