I'm making Onboarding and Main in Swift Storyboard environment.
Onboarding = Navigation Controller, welcome and sign up
Main = Tabber Controller, application main function
The order in which the user experiences the application is
- Onboarding screen output on first run
- When onboarding is complete, the Main Tabbar screen is displayed.
With this in mind, I applied "Is initial View Controller" for onboarding in the storyboard and printed the Main Tabbar in step 2, but the screen appeared, but the bottom tab bar was not displayed.
The next step is to check whether the application is running for the first time in the tabA ViewDidLoad situation of the Main Tabbar, and if it is the first time, execute Onboarding. Otherwise the default tab bar was launched. Onboarding was output by push, but the first screen appeared, but the push to the next screen did not proceed.
let navController = UINavigationController(rootViewController: introVC)
It worked fine when I ran it like this. But because the tab bar covers the screen
self.hidesBottomBarWhenPushed = true
hide the bottom tab bar
I used pop to get out. I personally don't know if this is correct, but it worked. But I don't know where to put the thing that makes the bottom tab bar visible again when the pop is finished.
If Onboarding is navigationController and Main is TabbarController, how should I connect the two?