I am trying to force only one view in my application on landscape mode, I am calling
override func shouldAutorotate() -> Bool { print(\"shouldAutoro
I needed to force one controller into portrait orientation. Adding this worked for me.
swift 4 with iOS 11
override var supportedInterfaceOrientations : UIInterfaceOrientationMask{ return .portrait }