Fix being able to rotate into landscape on iOS 14
This commit is contained in:
parent
fd0054addf
commit
0e60e74a8a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user