How can I verify my Google account login in my app in Swift 5?
The first option:
if GIDSignIn.sharedInstance.hasPreviousSignIn() {
print("You are logged in to your account")
navigationController?.pushViewController(ViewController2(), animated: true)
} else {
print("You are not logged in to your account")
}
You can put this code in the viewDidLoad() method.