TinyNetworking
TinyNetworking copied to clipboard
ReactiveSwift extension
tinyNetworking.reactive.request(resource: .photo(id: 123)).start { event in
switch event {
case let .value(response):
// Do something with the response.
case let .failed(error):
// Do something with the error.
default:
break
}
}