Generator of Viper template on Xcode.
VIPER is our application of Clean Architecture to iOS apps.
- Download
https://github.com/LearnerMN/Viber-Template/archive/master.zip
or clonehttps://github.com/LearnerMN/Viber-Template.git
the repository
- Copy the
Design Pattern
folder to~/Library/Developer/Xcode/Templates/File Templates/
- Clone the repository and run installation script
make install_templates
- Start Xcode and create a new group for your VIPER module
- Create a new file (
File > New > File
) - Choose
Design Pattern
andVIPER
orVIPER Test
- Type in the name of the module you want to create
- {{ModuleName}}Protocols.swift
- {{ModuleName}}View.swift
- {{ModuleName}}Presenter.swift
- {{ModuleName}}Interactor.swift
- {{ModuleName}}Router.swift
- {{ModuleName}}ViewTests.swift
- {{ModuleName}}PresenterTests.swift
- {{ModuleName}}InteractorTests.swift
- {{ModuleName}}RouterTests.swift