Skip to content

Instantly share code, notes, and snippets.

@lamprosg
Last active May 1, 2020 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lamprosg/427fab4930774e32f6343c1f962a1616 to your computer and use it in GitHub Desktop.
Save lamprosg/427fab4930774e32f6343c1f962a1616 to your computer and use it in GitHub Desktop.
(iOS) VIP / Clean Swift
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