prenagha / alamofire-example

Example of alamofire command line Xcode project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command line XCode project example using

Had some trouble getting Alamofire to work until someone helped me on Stack Overflow

The key was that by default the response handler gets called by Alamofire on the main thread, and main.swift is already running on the main thread, so the response handler is blocked. Once I got Alamofire directed to another thread/queue it all started working.

I highly recommend Erica Sadun's Swift Documentation Markup book

About

Example of alamofire command line Xcode project

License:The Unlicense


Languages

Language:Swift 100.0%