Last active
May 1, 2020 09:47
-
-
Save lamprosg/427fab4930774e32f6343c1f962a1616 to your computer and use it in GitHub Desktop.
(iOS) VIP / Clean Swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VIP / Clean Swift | |
//https://zonneveld.dev/the-clean-swift-architecture-explained/ | |
------------------- | |
VC -> Asks the Interactor for an action. | |
Interactor -> Business logic | Can write unit tests against it. | |
Will also handle requests and return object to the presenter | |
Presenter -> Presentation | Parse the object to a view model and give it to the VC to be displayed. | |
Router -> Handles the navigation. The presenter will use the Router for a transition. | |
Worker -> Interactor can grow massively with all business logic. | |
Interactor can make use of multiple workers. Workers are helpers to the interactor. | |
Workers must be generic. Multiple interactors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment