Merge branch 'ios-release'

This commit is contained in:
Maurice Parker 2020-06-16 08:10:31 -05:00
commit 36e39705e7
2 changed files with 4 additions and 3 deletions

View File

@ -233,7 +233,6 @@ class ArticleViewController: UIViewController {
if AppDefaults.articleFullscreenEnabled {
currentWebViewController?.hideBars()
}
resetWebViewController()
}
// MARK: Actions

View File

@ -301,8 +301,10 @@ extension WebViewController: UIContextMenuInteractionDelegate {
extension WebViewController: WKNavigationDelegate {
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
while view.subviews.count > 1 {
view.subviews.last?.removeFromSuperview()
for (index, view) in view.subviews.enumerated() {
if index != 0, let oldWebView = view as? PreloadedWebView {
oldWebView.removeFromSuperview()
}
}
}