SkillAgentSearch skills...

ViperTemplate

Template to generate VIPER classes on Xcode.

Install / Use

/learn @natangr/ViperTemplate
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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.
  • Add the StoryboardLoadable protocol extension and the UIStoryboard extension to your project.

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
  • Type in the name of the module you want to create
  • Not required: To create Xcode groups, remove the references to the newly created files and add them back to the project

Created Files

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

Contact

Natan Grando

View on GitHub
GitHub Stars115
CategoryDevelopment
Updated1y ago
Forks28

Languages

Swift

Security Score

65/100

Audited on Dec 12, 2024

No findings