Pure SwiftUI login, signup, register flow, is it possible?
问题 Im new to ios development and I have come straight into SwiftUI and Xcode 12. I'm trying to understand the flow for login from a login screen that after you input your credentials you are presented with a tabview screen. When the app first loads, its presented with the login and after login is successful the token from the server is returned and saved and further starting of the app checks for token and displays appropriate view WindowGroup { if token == nil { LoginView() } else { TabView() }