Skip to content

pettymn/ViperTemplate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViperTemplate

GitHub version

Template to generate VIPER classes on Xcode.

About VIPER

VIPER is a backronym for View, Interactor, Presenter, Entity and Router. It’s basically an approach that implements the Single Responsibility Principle to create a cleaner and more modular structure for your iOS project. You can learn more about it in this blog post.

Installation

  • Download VIPER Template or clone the project
  • Copy the Design Pattern folder to ~/Library/Developer/Xcode/Templates/File Templates/ or create a symbolic link to that folder.

Using the template

  • Start Xcode and create a new group for your VIPER module
  • Create a new file (File > New > File or ⌘N)
  • Choose Design Pattern and VIPER

PS: Don't forget to add the ReusableView protocol extension and both the UIViewController and UIStoryboard extensions to your project.

Created Files

  • Contract -> Contains all the protocols used in VIPER
  • Interactor
  • Presenter
  • ViewController (AKA View)
  • Router

Contact

Natan Grando

About

Template to generate VIPER classes on Xcode.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 54.2%
  • Makefile 45.8%