-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to manually make view .root #46
Comments
@ch05en This is how I deal with similar scenario |
Brother can you help me out please. I cant seem to put your code together and implement it into mine. This is my code ` @main @ObservedObject var lastLogged = LastLoggedUsersManager()
}` |
Hi @ch05en I think something like this might work for you (you can copy paste the example here below and try it yourself):
Run this example and tap on login. Then kill the app and run it again. This time the homepage will immediately show up. Now, if you tap on logout you'll see the login page appearing on pop. |
Hey @matteopuc. IT WORKED!!. Really appreciate the time you took to help me out here. Thank You. |
I have this app where I use userDefaults to store if the user was previously logged in. If they weren't previousy logged in, the first view is a login page. If they were previously logged in, the first view is a different view. That said, I want to implement a logout feature. But if they were already logged in, and the first view is not the login page, how can I pop back to a view that never appeared ie (the login page).
The text was updated successfully, but these errors were encountered: