From 85a35f4e668d2610e3ee6333f173ee187382222a Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Fri, 24 Jul 2026 17:19:13 -0700 Subject: [PATCH] Remove the work-around for the iOS 27 beta split view crash that was fixed in iOS 27 beta 4. --- iOS/SceneDelegate.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/iOS/SceneDelegate.swift b/iOS/SceneDelegate.swift index d337e1e4b..c66d7cdc2 100644 --- a/iOS/SceneDelegate.swift +++ b/iOS/SceneDelegate.swift @@ -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