Present SFSafariViewController using .overFullScreen instead of default .fullScreen — avoids a crash in -[UINavigationBar layoutSubviews]. Fix #4418.

This commit is contained in:
Brent Simmons
2024-12-05 22:06:00 -08:00
parent e3329e33f7
commit df8b404e1d
2 changed files with 10 additions and 6 deletions

View File

@@ -676,6 +676,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
if let indexPath = coordinator.currentFeedIndexPath,
let url = coordinator.homePageURLForFeed(indexPath) {
let vc = SFSafariViewController(url: url)
vc.modalPresentationStyle = .overFullScreen
present(vc, animated: true)
}
}