Created
December 31, 2018 04:28
-
-
Save kgleong/a0a5fe8563acc33bf25dc2d6bdf2402a to your computer and use it in GitHub Desktop.
Google Sign In App Delegate Open URL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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