Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
return configure(WKWebView(
frame: .zero,
configuration: configure(WKWebViewConfiguration()) {
$0.userContentController = configure(WKUserContentController()) {
$0.addUserScript(
WKUserScript(
source: source,
injectionTime: .atDocumentEnd,
forMainFrameOnly: true
)
)
}
}
)
){
$0.isOpaque = false
$0.backgroundColor = .clear
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.