Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Arman Kussainov
4,754 PointsUse SimpleAuth/Instagram in Swift?
How to use SimpleAuth/Instagram in Swift? How to import and use auth methods?
6 Answers
Stephen Whitfield
16,771 PointsCould you upload your project? I'd be willing to take a stab at this as I have not used SimpleAuth with Swift yet.
Leo Picado
9,182 PointsHi Stephen Whitfield thanks! I've actually been talking to Caleb Davenport, creator of the library and he recommended the following https://cloudup.com/cx2dXSfZLww, that seems to work
Stephen Whitfield
16,771 PointsI don't think they've implemented a Swift version for SimpleAuth. Best bet for you is to use the bridging-header file that allows you to use Objective-C coded APIs in Swift format.
Leo Picado
9,182 PointsStephen Whitfield I tried that (using a bridging header), but I can't even setup the config object, AFAIK the config method is a factory to setup different kind of authentications, but I can not assign the result of the execution of a function, look https://cloudup.com/cBACZ9K09A2
Leo Picado
9,182 PointsMy bad not a factory at all, just a dictionary with config objects, still, it doesn't fly https://cloudup.com/cAbauQ5C-v4
Stephen Whitfield
16,771 Points!!!!!!!!!!!!! Awesome. Let me know if you run into any more problems!