Swiftpack.co - Package - lukesutton/yopuy-alamofire

Yopuy Alamofire

A very simple package that adds support for the Alamofire package to Yopuy.

It's easy to use. Just construct an instance of Alamofire's SessionManager and convert it into the adapter type.

import Yopuy
import YopuyAlamofire

let adapter = Alamofire.SessionManager.default.yopuyAdapter
let service = Service(adapter: adapter)
}

You can also manually construct an adapter if you already have an instance of the session manager.

let adapter = AlamofireAdapter(manager: manager)
let service = Service(adapter: adapter)

Github

link
Stars: 0
Help us keep the lights on

Used By

Total: