Learn Courses My Dashboard

Xcode 14 Storyboard: Tab Bar initial view settings

Is there a way to specifiy (in storyboard) what view comes up on my bottom tab bar controller first? The one to the left is default but I want the middle button to be default instead.

The way it is set now the number 1 shows
1 2 home 4 5

I want “home” to be shown first after the login screen but do not want it allocated to the left side of the controller. I looked on youtube for a turtorial but couldn’t find it.

I believe you can subclass the UITabBarController, and in viewDidLoad, set the selected tab (I can’t remember the exact property), but it’s like the property you would find when programmatically changing the tabs

Be sure to connect that subclass to the storyboard