© Raúl Ferrer García 2023
R. F. GarcíaiOS Architecture Patternshttps://doi.org/10.1007/978-1-4842-9069-9_5

5. VIPER: View–Interactor–Presenter–Entity–Router

Raúl Ferrer García1  
(1)
Barcelona, Spain
 

What Is VIPER?

A Little History

VIPER was introduced in 2014 by Jeff Gilbert and Conrad Stoll and was the first attempt to apply the Clean Architecture (which we saw in Chapter 1), creating a series of components, each of which has a unique responsibility.1

VIPER is an acronym for View, Interactor, Presenter, Entity, and Router, and what is achieved is to divide a functionality or implementation into five different layers, gathered within a module (Figure 5-1).

How It Works

The use of these components allows us to separate responsibilities within the application, ...

Get iOS Architecture Patterns: MVC, MVP, MVVM, VIPER, and VIP in Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.