Вы можете определить вашу панель вкладок программно.но сначала вы должны установить идентификатор для ваших вкладок в раскадровке, как на картинке:
in AppDelegate
, didFinishLaunchingWithOptions
метод:
let storyboard = UIStoryboard(name: "Main", bundle: nil)
// change "Main" if your storyboard's filename is different.
let vc1 = storyboard.instantiateViewController(withIdentifier: "vc1")
let vc2 = storyboard.instantiateViewController(withIdentifier: "vc2")
let tab = UITabBarController()
if UIDevice.current.model.lowercased() == "iphone" {
tab.viewControllers = [vc1, vc2]
} else {
tab.viewControllers = [vc2, vc1]
}
window?.rootViewController = tab