I am new to iOS and am having trouble with app delegate URL handling in Swift 3, and I could really use some pointers.
The below code works perfectly fine in Swift 2
Swift 4, Xcode 9
If you are using multiple URLSchemes for facebook and Google SignIn:
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
let fbSignIn = FBSDKApplicationDelegate.sharedInstance().application(application, open: url, sourceApplication: sourceApplication, annotation: annotation)
let googleSignIn = GIDSignIn.sharedInstance().handle(url, sourceApplication: sourceApplication, annotation: annotation)
return fbSignIn || googleSignIn
}