Remove the work-around for the iOS 27 beta split view crash that was fixed in iOS 27 beta 4.

This commit is contained in:
Brent Simmons committed 2026-07-24 17:19:13 -07:00
1 parent b5d080cad6
commit 85a35f4e66
1 file changed
-7
-7
View File
@@ -26,13 +26,6 @@ final class SceneDelegate: UIResponder, UIWindowSceneDelegate {
rootViewController.showsSecondaryOnlyButton = true
rootViewController.preferredDisplayMode = UISplitViewController.DisplayMode(rawValue: AppDefaults.shared.splitViewPreferredDisplayMode) ?? .oneBesideSecondary
// On iOS 27, UIKit hits an assert in UINavigationBar layout when the split view
// collapses, which happens when rotating a Max-size iPhone from landscape to portrait.
// Keep iPhones compact so the split view never expands and collapses.
if #available(iOS 27, *), UIDevice.current.userInterfaceIdiom == .phone {
rootViewController.traitOverrides.horizontalSizeClass = .compact
}
// On first run on iPad, show all three columns so the sidebar is visible
if AppDefaults.shared.isFirstRun && UIDevice.current.userInterfaceIdiom == .pad {
rootViewController.preferredDisplayMode = .twoBesideSecondary