I have noticed on https://firebase.google.com/docs/auth/ios/google-signin page under "Authenticate with Firebase" the use of a deprecated method while implementing the same in my iOS application
Here are snapshots:


Can we change the snippet code to new function?