-
Initialize Generamba in your project's folder and install templates from this repo
-
open terminal and execute this in the same project's folder:
$ generamba gen ModuleName viper_module
To instantiate a module you have just to call ModuleViewController.instantiate()
The new VIPER Module/Submodule(whatever) will be generated in your project's folder with structure:
Module
├── ModuleStoryboard.swift
├── View
│ └── ModuleViewController.swift
├── Presenter
│ └── ModulePresenter.swift
├── Interactor
│ └── ModuleInteractor.swift
├── Router
│ └── ModuleRouter.swift
├── Configurator
│ ├── ModuleConfigurator.swift
└── Protocols
└── ModuleProtocols.swift