This repository contains Xcode templates that we use for iOS development in Catawiki. It currently contains 5 templates:
- VIPER Module
- VIPER Module tests
- VIPER Component
- VIPER Component tests
- Quick Spec
Run install.sh
script to copy the template to proper location
To save time setting up new VIPER modules, and to avoid making mistakes in the setup (strong-weak references, using outdated conventions).
- Create a group for new module in project tree
- Right click to
New file... -> AppModule
- Enter module name
- Skip the file name (don't change)
- Enjoy
To save time setting up tests for new VIPER modules, and to avoid making mistakes in the setup.
- Create a group for new module in project tree
- Right click to
New file... -> AppModuleTests
- Enter module name
- Skip the file name (don't change)
- Enjoy
To save time setting up new VIPER component, and to avoid making mistakes in the setup (strong-weak references, using outdated conventions).
- Create a group for new component in project tree
- Right click to
New file... -> AppComponent
- Enter component name
- Skip the file name (don't change)
- Enjoy
To save time setting up tests for new VIPER components, and to avoid making mistakes in the setup.
- Create a group for new component in project tree
- Right click to
New file... -> AppComponentTests
- Enter component name
- Skip the file name (don't change)
- Enjoy
To save time setting up new test classes.
Note: this template explicitly imports the Catawiki
framework.
- Right click to
New file... -> Quick Spec Class
- Enter name of the file/class being tested:
BurritoPresenter
, notBurritoPresenterSpec
- The
ClassnameSpec.swift
file is created and pre-filled for you. - Enjoy