diff --git a/VoidLink/Base.lproj/iPad.storyboard b/VoidLink/Base.lproj/iPad.storyboard index 5f84ad8d..687ae432 100644 --- a/VoidLink/Base.lproj/iPad.storyboard +++ b/VoidLink/Base.lproj/iPad.storyboard @@ -2455,11 +2455,29 @@ - - + + + - - + + @@ -2626,7 +2626,7 @@ - + - + - + @@ -2844,7 +2844,7 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + diff --git a/VoidLink/Base.lproj/iPhone.storyboard b/VoidLink/Base.lproj/iPhone.storyboard index bc724629..03b6d512 100644 --- a/VoidLink/Base.lproj/iPhone.storyboard +++ b/VoidLink/Base.lproj/iPhone.storyboard @@ -1,10 +1,11 @@ - + + @@ -58,13 +59,10 @@ - - - - + @@ -101,13 +99,10 @@ - - - - + @@ -123,10 +118,6 @@ - - - - @@ -136,6 +127,7 @@ + @@ -151,22 +143,34 @@ - - - - - + - - + + + - - - - + @@ -285,37 +286,19 @@ - - - - - + + - - + + + - + + + @@ -1340,7 +1326,7 @@ - + @@ -1376,10 +1362,6 @@ - - - - @@ -1435,13 +1417,14 @@ + - + - - - + + + @@ -1461,10 +1444,6 @@ - - - - @@ -1546,14 +1525,14 @@ - + @@ -1688,14 +1667,14 @@ - + @@ -1708,14 +1687,14 @@ - + @@ -1728,14 +1707,14 @@ - + @@ -1748,14 +1727,14 @@ - + @@ -1768,14 +1747,14 @@ - + @@ -1914,14 +1893,14 @@ - + @@ -2296,14 +2275,14 @@ - + @@ -2527,14 +2506,14 @@ - + @@ -2567,14 +2546,14 @@ - + @@ -2726,14 +2705,14 @@ - + @@ -2746,14 +2725,14 @@ - + @@ -2766,14 +2745,14 @@ - + @@ -2837,14 +2816,14 @@ - + @@ -2981,14 +2960,14 @@ - + @@ -3001,14 +2980,14 @@ - + @@ -3064,14 +3043,14 @@ - + @@ -3124,14 +3103,14 @@ - + @@ -3144,14 +3123,14 @@ - + @@ -3229,14 +3208,14 @@ - + @@ -3249,14 +3228,14 @@ - + @@ -3366,6 +3345,7 @@ + @@ -3569,19 +3549,19 @@ - + - + - + - + - + diff --git a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift index ea8ac39f..a1ecb489 100644 --- a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift +++ b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift @@ -201,7 +201,13 @@ final class LayoutOnScreenControlsViewController: UIViewController, OnScreenWidg private var widgetSizeTransition: WidgetSizeTransition = .keepWidgetSize override var supportedInterfaceOrientations: UIInterfaceOrientationMask { - getCurrentOrientation() + let dataMan = DataManager() + let currentSettings = dataMan.retrieveSettings() + if currentSettings?.unlockDisplayOrientation == true { + return .all + } else { + return GenericUtils.isIPhone() ? .landscape : getCurrentOrientation() + } } private func getCurrentOrientation() -> UIInterfaceOrientationMask { @@ -1484,6 +1490,7 @@ final class LayoutOnScreenControlsViewController: UIViewController, OnScreenWidg layoutOSC._leftStick.position = CGPoint(x: layoutOSC._leftStickBackground.frame.width / 2, y: layoutOSC._leftStickBackground.frame.height / 2) } + @objc private func moveToolbar(_ sender: UIGestureRecognizer) { let toolbarTopConstraint = UIDevice.current.model.hasPrefix("iPad") ? toolbarTopConstraintiPad! : toolbarTopConstraintiPhone! if !isToolbarHidden { diff --git a/VoidLink/ViewControllers/SettingsViewController.m b/VoidLink/ViewControllers/SettingsViewController.m index d04ea773..df2cae82 100644 --- a/VoidLink/ViewControllers/SettingsViewController.m +++ b/VoidLink/ViewControllers/SettingsViewController.m @@ -2739,6 +2739,7 @@ BOOL isCustomResolution(int resolutionSelected) { } self.layoutOnScreenControlsVC.view.backgroundColor = [UIColor colorWithWhite:0.55 alpha:1.0]; + self.layoutOnScreenControlsVC.modalPresentationStyle = UIModalPresentationFullScreen; [self presentViewController:self.layoutOnScreenControlsVC animated:YES completion:nil]; }