Hand off the web page instead of the article while the in-app browser is open. Fixes #5369.

This commit is contained in:
Brent Simmons committed 2026-07-29 08:54:55 -07:00
1 parent 5a47d7993d
commit 166b60b59f
3 files changed
+40

No files matched your search

+11
View File
@@ -888,10 +888,21 @@ private extension WebViewController {
guard let viewController = SFSafariViewController.safeSafariViewController(url) else {
return
}
viewController.delegate = self
coordinator?.beganBrowsing(url: url)
present(viewController, animated: true)
}
}
// MARK: SFSafariViewControllerDelegate
extension WebViewController: @preconcurrency SFSafariViewControllerDelegate {
func safariViewControllerDidFinish(_ controller: SFSafariViewController) {
coordinator?.endedBrowsing()
}
}
// MARK: Find in Article
private struct FindInArticleOptions: Codable {