mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-30 09:18:18 +00:00
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:
1 parent
b5d080cad6
commit
85a35f4e66
1 file changed
-7
@@ -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
|
||||
|
||||
Reference in new issue
Block a user