My app use google+ signin and in my appdelegate.swift i have:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSOb
in Swift 5 you can do it this way:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FBSDKCoreKit.ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)
GIDSignIn.sharedInstance().clientID = "your_client_id"
GIDSignIn.sharedInstance().delegate = self
return true
}
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
let handledFB = FBSDKCoreKit.ApplicationDelegate.shared.application(app, open: url, options: options)
let handledGoogle = GIDSignIn.sharedInstance().handle(url)
return handledFB || handledGoogle
}