I don't really have code to share, but the idea and question is pretty simple, I just cannot seem to find the right way to do it.
I have a SaaS-type application where a user signs up, receives a Web Token which goes into the UserDefaults
. Once this is complete, and that token is present, I want to take the user to a TabView
with the main menu stuff and they can begin using the app.
What's the best way to essentially break away from the NavigationView
flow where a user creates their account, and then drop them into the TabView
where they can begin using the app.
I tried:
On the final NavigationView
screen, the user finishes adding all their account information, the token comes back and gets stored, and then I render a "Continue" button. The action
on this button calls MainTabView()
to try and kick-off the new flow of using the app's main features.
All that happens is I receive this error:
Result of 'MainTabView' initializer is unused
Any insights?