79222373

Date: 2024-11-25 09:22:49
Score: 1.5
Natty:
Report link

Answer based on @vishnu_146 comment:

  1. Set Portrait orientation in info.plist
  2. Than set needed orientation in AppDelegate (you can set specific orientations for iPad and iPhone)
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
    let orientations: UIInterfaceOrientationMask = UIDevice.current.userInterfaceIdiom == .pad ? .all : [.portrait, .landscape]
    return orientations
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @vishnu_146
  • Low reputation (1):
Posted by: Vladislav Komkov