Keep queued WKWebViews in a hidden view until they are needed. Issue #1563

This commit is contained in:
Maurice Parker
2020-01-29 17:39:40 -07:00
parent fdde879910
commit f9589faa59
3 changed files with 11 additions and 9 deletions

View File

@@ -121,8 +121,6 @@ class WebViewController: UIViewController {
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.imageWasClicked)
webView.configuration.userContentController.add(WrapperScriptMessageHandler(self), name: MessageName.imageWasShown)
// Even though page.html should be loaded into this webview, we have to do it again
// to work around this bug: http://www.openradar.me/22855188
self.reloadHTML()
self.view.setNeedsLayout()