I worked to a login view, now I want to present the view after login, but I do not want the user to have the possibility to return to the login
view
Encapsulate the body in a Group to eliminate compiler errors:
struct StartView: View { @EnvironmentObject var userAuth: UserAuth var body: some View { Group { if userAuth.isLoggedin { AppView() } else { LoginView() } } }