Drastically simplifies app code by providing a client-side cache of observable models for RESTful resources. The elegant way to write iOS / macOS REST clients. You need to display response data whenever it arrives. Unless the requesting screen is no longer visible. Unless some other currently visible bit of UI happens to need the same data. Or is about to need it. You should show a loading indicator (but watch out for race conditions that leave it stuck spinning forever), display user-friendly errors (but not redundantly, no modal alert dogpiles!), give users a retry mechanism, and hide all of that when a subsequent request succeeds. Remember not to retain your ViewController/model/helper thingy by accident in your callback closures. Unless you’re supposed to.
Features
- For iOS 10+, macOS 10.11+, tvOS 9.0+
- Written in Swift
- Supports apps in both Swift and Objective-C
- Requires Xcode 11.3+, Swift 5.1+
- Licensed under the MIT License
- Decouples view, model, and controller lifecycle from network request lifecycle
- Decouples request initiation from request configuration
- Eliminates error-prone state tracking logic
- Unified handling for all errors: encoding, network, server-side, and parsing