Skip to content

The most simple VIPER module generator for Swift projects, usigin xcode.

Notifications You must be signed in to change notification settings

tiagohs/viper-module-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Viper Template Generator (🐍)

The most simple VIPER module generator for Swift projects, usigin xcode.

Installation

Manually

  • 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.

Automatically

Usage

  • 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
  • Type in the name of the module you want to create

I use the R.swift library to get the Controller inside the _MODULENAME_Wireframe. If you dont want to do it, just change the method of get the Controller from the storyboard.

Structure

  • Contract -> Contains all the protocols used in VIPER
  • Interactor
  • Presenter
  • Controller (AKA View)
  • Storyboard -> Constain one default ViewController with your Controller swift class attatch it.
  • Wireframe

Credits

This is my version, basead on the Natan Grando version

Contact:

Tiago Henrique da Silva - tiago.hsilva@al.infnet.edu.br / tiago.silva.93@hotmail.com

Follow me on Facebook Add me to Linkedin Site Portfolio