Switch branches/tags
Nothing to show
Find file Copy path
ac897d9 Oct 31, 2017
@serkrapiv @x0000ff @etolstoy
38 lines (24 sloc) 2.63 KB

VIPER - Architecture approach for application development(particularly iOS), based on the Clean Architecture by Robert C. Martin (Uncle Bob).

Clean Architecture

Main goals of VIPER:

  • Increasing test coverage of the Presentation level, usually built from Massive View Controllers.
  • Conforming to the Single Responsibility Principle.

It is important to note that VIPER is not the list of rules and templates. It's the list of recommendations how to build flexible, testable and reusable architecture. We, the iOS Team of Rambler&Co, have adopted some canonical principles and formed our best practices for some cases.

VIPER looks difficult at first, especially for developers without the team work experiences on large projects. It might be hard to understand its benefits if independent modules and high test coverage are not your priorities. But, VIPER is helpful even for small applications.

Pros and cons of VIPER:


  • Increase of testability for the application presentation layer.
  • Modules are independent from each other. It separates the development environment and increases the code reusability.
  • Main architecture approaches are defined. So it's much easier to add new developer to the team or move project to another team.


  • Highly increases number of classes in the project, as well as the complexity of creating a new module.
  • Some principles don't work with UIKit out of the box.
  • Lack of recommendations, best practices and complex application examples.

We'll cover each of these concepts in detail and focus on how to solve those problems through the book.

VIPER history timeline: