Get Updates By E-mail 

Article Written By:
Johann Dowa

Extensive Open Source Swift Based Networking Library


Last month I mentioned a library providng a neat Swift library wrapping much of NSURLSession’s features called SwiftHTTP.

Here’s an open source library from AFNetworking project founder Mattt Thompson providing a more extensive networking written in Swift called Alamofire.

As Mattt states in the readme:

Alamofire is an HTTP networking library written in Swift. Think of it as AFNetworking, reimagined for the conventions of this new language.

The features as stated in the readme include:

Chainable Request / Response methods
URL / JSON / plist Parameter Encoding
Upload File / Data / Stream
Download using Request or Resume data
Authentication with NSURLCredential
Progress Closure & NSProgress
cURL Debug Output

This example from the readme shows the alamoFire syntax on creating a GET request with response string handling:

Alamofire.request(.GET, "", parameters: ["foo": "bar"])
         .responseString { (request, response, string, error) in

You can find AlamoFire on Github here.

A great Swift based networking library.


Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.