Skip to content

Instantly share code, notes, and snippets.

@revskill
Last active August 29, 2015 14:15
Show Gist options
  • Save revskill/08d4c237e990739e8d49 to your computer and use it in GitHub Desktop.
Save revskill/08d4c237e990739e8d49 to your computer and use it in GitHub Desktop.
VIPER
View:
- Show the content received from Presenter
- Notifies user's action to Presenter
- Presenter doesn't know anything about UI
Presenter:
- Include logic to format the view
- Gets data from Interactor
- Receive action from View and traduce to Navigation Action (Wireframe) and Interactor request
Interactor:
- Associated to a uniq use case of the application
- Works with PONSO entities
- Coordinates both data manager (API and local)
DataManager:
- Provider of entities for Interactor
- Responsible for persistence (web and local)
- The entities don't know how to persist themselves
Wireframe:
- Initialize VIPER module
- It knows how to navigate
- Delegate of transition animations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment