🩹 Fix 5097 & 5115

This commit is contained in:
Stuart Breckenridge committed 2026-02-17 18:30:21 +08:00
1 parent ab53b92d35
commit 8d51ee3c8e
1 file changed
+5 -5
+5 -5
View File
@@ -109,11 +109,6 @@ final class ArticleViewController: UIViewController {
articleExtractorButton.addTarget(self, action: #selector(toggleArticleExtractor(_:)), for: .touchUpInside)
toolbarItems?.insert(UIBarButtonItem(customView: articleExtractorButton), at: 6)
if let parentNavController = navigationController?.parent as? UINavigationController {
poppableDelegate.navigationController = parentNavController
parentNavController.interactivePopGestureRecognizer?.delegate = poppableDelegate
}
pageViewController = UIPageViewController(transitionStyle: .scroll, navigationOrientation: .horizontal, options: [:])
pageViewController.delegate = self
pageViewController.dataSource = self
@@ -183,6 +178,10 @@ final class ArticleViewController: UIViewController {
navigationController?.navigationBar.topItem?.subtitle = nil
coordinator.isArticleViewControllerPending = false
searchBar.shouldBeginEditing = true
if let parentNavController = navigationController?.parent as? UINavigationController {
poppableDelegate.navigationController = parentNavController
parentNavController.interactivePopGestureRecognizer?.delegate = poppableDelegate
}
}
override func viewWillDisappear(_ animated: Bool) {
@@ -191,6 +190,7 @@ final class ArticleViewController: UIViewController {
endFind()
searchBar.shouldBeginEditing = false
}
currentWebViewController?.showBars()
}
override func viewSafeAreaInsetsDidChange() {