Popularity
2.1
Stable
Activity
0.0
Stable
65
5
13
Code Quality Rank:
L5
Programming language: Swift
License: MIT License
Tags:
Networking
Latest version: v3.0
UnboxedAlamofire alternatives and similar libraries
Based on the "Networking" category.
Alternatively, view UnboxedAlamofire alternatives based on common mentions on social networks and blogs.
-
RealReachability
We need to observe the REAL reachability of network. That's what RealReachability do. -
Networking
DISCONTINUED. Easy HTTP Networking in Swift a NSURLSession wrapper with image caching support -
XMNetworking
A lightweight but powerful network library with simplified and expressive syntax based on AFNetworking. -
Digger
Digger is a lightweight download framework that requires only one line of code to complete the file download task -
SOAPEngine
This generic SOAP client allows you to access web services using a your iOS app, Mac OS X app and AppleTV app. -
TWRDownloadManager
A modern download manager based on NSURLSession to deal with asynchronous downloading, management and persistence of multiple files. -
ws ☁️
⚠️ Deprecated - (in favour of Networking) :cloud: Elegantly connect to a JSON api. (Alamofire + Promises + JSON Parsing) -
AFNetworking+RetryPolicy
Nice category that adds the ability to set the retry interval, retry count and progressiveness. -
MultiPeer
📱📲 A wrapper for the MultipeerConnectivity framework for automatic offline data transmission between devices
InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
Promo
www.influxdata.com
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of UnboxedAlamofire or a related project?
README
UnboxedAlamofire
Alamofire + Unbox: the easiest way to download and decode JSON into swift objects.
Features
- [x] Unit tested
- [x] Fully documented
- [x] Mapping response to objects
- [x] Mapping response to array of objects
- [x] Keypaths
- [x] Nested keypaths
- [x] For Swift 2.x use v.
1.x
and swift2 branch - [x] For Swift 3.x use v.
2.x
Usage
Objects you request have to conform Unboxable protocol.
Get an object
Alamofire.request(url, method: .get).responseObject { (response: DataResponse<Candy>) in
// handle response
let candy = response.result.value
// handle error
if let error = response.result.error as? UnboxedAlamofireError {
print("error: \(error.description)")
}
}
Get an array
Alamofire.request(url, method: .get).responseArray { (response: DataResponse<[Candy]>) in
// handle response
let candies = response.result.value
// handle error
if let error = response.result.error as? UnboxedAlamofireError {
print("error: \(error.description)")
}
}
KeyPath
Also you can specify a keypath in both requests:
Alamofire.request(url, method: .get).responseObject(keyPath: "response") { (response: DataResponse<Candy>) in
// handle response
let candy = response.result.value
// handle error
if let error = response.result.error as? UnboxedAlamofireError {
print("error: \(error.description)")
}
}
Installation
CocoaPods
pod 'UnboxedAlamofire', '~> 2.0'
Carthage
github "serejahh/UnboxedAlamofire" ~> 2.0