Swiftpack.co - Package - lkoy/AssignementJson


Design principles


This project was created following VIPER architecture which is based on Clean Architecture principles. In addition to the VIPER components View, Interactor, Presenter, Entity and Routing I added the Builder and the Worker.


The project is divided in scenes, each scene have the View, Presenter, Router, ViewModels and Builder. The builder is in charge of instantiate all the components needed for each scene and add Interactors if bussiness layer is needed.

Each interactor is a Use Case and are called from the Presenter. Interactor have one or more workers, every worker is an atomic action and can be used in different Interactors to compose a new Use Case.

Domain models are used on bussines layer and converted to view models to use on the presentation layer, the presenter is on charge of this conversion and deciding the behaviour of the view layer.

I chose this architecture because is scalable and easy to test. I added testing in some of the scenes to show at least one test type(Interactor and Presenter).

Challenges during development

Note: Carthage used to manage dependencies (run carthage bootstrap --platform ios command on the project folder)


Stars: 0


Used By

Total: 0