[Solved] How to stop or disable portrait/auto rotate app in ios swift? January 1, 2023 by Kirat [ad_1]Try this :By User Interface ProgramaticallyAdd this in appdelegatefunc application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask { return UIInterfaceOrientationMask(rawValue: UIInterfaceOrientationMask.landscape.rawValue) } 1[ad_2]solved How to stop or disable portrait/auto rotate app in ios swift?