TinyNetworking icon indicating copy to clipboard operation
TinyNetworking copied to clipboard

ReactiveSwift extension

Open jdisho opened this issue 6 years ago • 0 comments

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
    }
}

jdisho avatar Jan 13 '19 22:01 jdisho