Skip to content

Instantly share code, notes, and snippets.

@kgleong
Created December 31, 2018 04:28
Show Gist options
  • Save kgleong/a0a5fe8563acc33bf25dc2d6bdf2402a to your computer and use it in GitHub Desktop.
Save kgleong/a0a5fe8563acc33bf25dc2d6bdf2402a to your computer and use it in GitHub Desktop.
Google Sign In App Delegate Open URL
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
let sourceApplication = options[.sourceApplication] as? String
let annotation = options[.annotation]
return GIDSignIn.sharedInstance()?.handle(url, sourceApplication: sourceApplication, annotation: annotation) ?? false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment