HermesNetwork is the concrete implementation of an isolated/testable networking layer written in Swift.
Current version is based upon the network architecture design described in: "Network Layers in Swift (Updated)" written by me.
While the theory behind this approach is independent from the tool used, in order to give a complete out-of-box approach I’ve used the following libraries:
NSURLSessionis pretty easy and, in fact, suggested.
JSONOperationclass: everything about JSON was offered by SwiftyJSON, probability the best library for these stuff.
You can install Swiftline using CocoaPods, carthage and Swift package manager
use_frameworks! pod 'HermesNetwork'
Add swiftline as dependency in your
import PackageDescription let package = Package(name: "YourPackage", dependencies: [ .Package(url: "https://github.com/malcommac/HermesNetwork.git", majorVersion: 0), ] )