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
struct ContentView: View { @EnvironmentObject var userAuth: UserAuth var body: some View { if !userAuth.isLoggedin { return AnyView(LoginView()) } else { return AnyView(HomeView()) } } }