From 0e60e74a8ac329e7f979c60c995669c1df9f949e Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 21 Sep 2020 18:45:52 -0400 Subject: [PATCH] Fix being able to rotate into landscape on iOS 14 --- Tusker/Screens/Main/MainSplitViewController.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tusker/Screens/Main/MainSplitViewController.swift b/Tusker/Screens/Main/MainSplitViewController.swift index 3bdd94e1..e30741ee 100644 --- a/Tusker/Screens/Main/MainSplitViewController.swift +++ b/Tusker/Screens/Main/MainSplitViewController.swift @@ -20,6 +20,14 @@ class MainSplitViewController: UISplitViewController { private var tabBarViewController: MainTabBarViewController! + override var supportedInterfaceOrientations: UIInterfaceOrientationMask { + if UIDevice.current.userInterfaceIdiom == .phone { + return .portrait + } else { + return .all + } + } + init(mastodonController: MastodonController) { self.mastodonController = mastodonController