Skip to content

Organizing the Stack

Ryan Bush edited this page Apr 24, 2017 · 1 revision

Once all the files for the stack are created, organize them so they are easy to work with. Here is a short video showing you one way of how:

VIPER - Organizing the VIPER Stack

  • You want to organize the files into their respective layers for easy access. These layers are typically referred to as:
    • Data Logic - the Interactor and any associated tests or mocks.
    • Routing - the Wireframe and Presenter, as well as any associated tests or mocks.
    • User Interface - the View, storyboard, view objects, and any associated tests or mocks.
  • Try to keep your tests files as close to the implementation files as possible.
    • This is so when you see the implementation file you also see the test file, and you don't skip out on tests (something that is easy to do when you're focused on implementation).