Answer based on @vishnu_146 comment:
info.plist
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
}