calebd / SimpleAuth

Simple social authentication for iOS.
http://simpleauth.io
MIT License
1.15k stars 135 forks source link

bug using swift 3 #136

Open davidseek opened 8 years ago

davidseek commented 8 years ago

please have a look at this thread

http://stackoverflow.com/questions/40168448/swift-3-how-to-solve-ambiguous-use-of-authorize-completion/40169747#40169747

the compiler in xcode 8, using swift 3 throws an error, if you want to use the following func:

open class func authorize(_ provider: String!, completion: SimpleAuth.SimpleAuthRequestHandler!)

problem is the following function:

open class func authorize(_ provider: String!, options: [AnyHashable : Any]! = [:], completion: SimpleAuth.SimpleAuthRequestHandler!)

because of = [:]

maxwyb commented 7 years ago

Hi @davidseek , did you manage to compile the SimpleAuth framework using Swift 3 with Xcode 8? Seems that ReactiveCocoa (one of its Pod dependency) has changed a lot over the years and has been migrated from Objective-C to Swift. So I have to modify all related SimpleAuth source codes to Swift, such as all RACSignal objects to Signal?

davidseek commented 7 years ago

https://github.com/davidseek/SimpleAuthInstagram

have fun