UserApi.shared.loginWithKakaoAccount(prompts: [.Login]) {(oauthToken, error) in
if let error = error {
print(error)
} else {
print("LoginSuccee")
MainView()
_ = oauthToken
}
}
I want to switch the view when I succeed Is there a way?