mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-22 23:58:36 +01:00
Merge branch 'ios-release'
This commit is contained in:
commit
36e39705e7
@ -233,7 +233,6 @@ class ArticleViewController: UIViewController {
|
||||
if AppDefaults.articleFullscreenEnabled {
|
||||
currentWebViewController?.hideBars()
|
||||
}
|
||||
resetWebViewController()
|
||||
}
|
||||
|
||||
// MARK: Actions
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user