SimpleAuth icon indicating copy to clipboard operation
SimpleAuth copied to clipboard

bug using swift 3

Open davidseek opened this issue 9 years ago • 2 comments

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 = [:]

davidseek avatar Oct 21 '16 07:10 davidseek

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?

maxwyb avatar Apr 25 '17 02:04 maxwyb

https://github.com/davidseek/SimpleAuthInstagram

have fun

davidseek avatar Apr 25 '17 08:04 davidseek