- Compatibility with XCode 10 and Swift 4.2
- Single interface for your user interface and worker classes and controllers
- Async and sync task friendly
- Easier to test as it encourages decoupled code and methods are generally functional
- Uses PromiseKit to properly wrap requests and responses
- Use cases scenarios are documented as enums
- Worker classes or controllers are registered in a registry object
- It makes code decoupling easier with the use of registries and protocol
- It works with any iOS architecture such as MVVM, MVP, etc
- A software architecture
- Enforcing a specific architecture while it is up to the developer to decide which one he will use with this kit
To run the example project, clone the repo, and run pod install
from the Example directory first.
To install it, simply add the following line to your Podfile. For now since this is a new lib instead of loading it from git you may need to download the lib and reference it via the pod's path on your machine.
pod 'DecouplerKit', :path => 'to Decoupler path/'
- Registry object management
- Multiple registry management
- MVVM, MVP demo
DecouplerKit is available under the MIT license. See the LICENSE file for more info.