Value of type 'GIDSignIn' has no member 'presentingViewController'
In viewDidLoad()
of your ViewController
add the following line:
GIDSignIn.sharedInstance()?.uiDelegate = self
and make the ViewController
conform to GIDSignInUIDelegate
protocol.
Your code is correct if you are using Google Sign-In v5.0:
GIDSignIn.sharedInstance()?.presentingViewController = self
But since you've installed 4.4.0, you should accept Vitaly Shpinyov's answer.
Or upgrade Google Sign-In to 5.0 or higher by editing your podfile:
pod 'GoogleSignIn', '~> 5.0'