Open Vinzius opened 6 years ago
Sure, go for it!
Thanks, I'll do that this week! :-)
There's probably some maintenance needed for this project for iOS 11 as well... converting to Swift 3.2/4, and using the new SFAuthenticationSession
now that SFVC is no longer persisting auth data across apps.
https://developer.apple.com/documentation/safariservices/sfauthenticationsession
Hey @edjiang
I'm a bit late, but I'll soon submit a PR for Swift 4.1 + iOS 11.
SFAuthenticationSession
if iOS 11+ (but I only tried with FB)Cheers
Hey !
First, thanks for your lib 👍
I noticed that if you don't put the fb scheme in the CFBundleURLSchemes list, then the app will produce an error / crash (at least it'll go to
preconditionFailure
).Reason if that at this line
let urlSchemes = urlTypes.flatMap({($0["CFBundleURLSchemes"] as? [String])?.first })
you take.first
, instead you could do a reduce instead of the flatMap.Would you merge a PR if I were to submit one?
Thanks, Vincent