Git Product home page Git Product logo

vipertemplate's Introduction

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

vipertemplate's People

Contributors

natangr avatar mikina avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.