Limits controller customization screen to portrait orientation

This commit is contained in:
Riley Testut 2019-07-14 17:41:18 -07:00
parent 877cf88806
commit 8113c4888d
2 changed files with 13 additions and 1 deletions

View File

@ -716,7 +716,7 @@
<!--Navigation Controller-->
<scene sceneID="bwW-s2-fcE">
<objects>
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="0QR-U9-gtx" sceneMemberID="viewController">
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="0QR-U9-gtx" customClass="RSTNavigationController" sceneMemberID="viewController">
<toolbarItems/>
<simulatedNavigationBarMetrics key="simulatedTopBarMetrics" barStyle="black" prompted="NO"/>
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" barStyle="black" id="Y5H-O6-CQ5">

View File

@ -46,6 +46,18 @@ class ControllerInputsViewController: UIViewController
public override var next: UIResponder? {
return KeyboardResponder(nextResponder: super.next)
}
override var shouldAutorotate: Bool {
return false
}
override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return .portrait
}
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation {
return .portrait
}
override func viewDidLoad()
{