Xcode templates for VIPER architecture (Swift language).
- Download templates from repository
- Copy the
Architecture
folder to/Users/<user>/Library/Developer/Xcode/Templates/File\ Templates
- Start Xcode and create a new file (
File > New > File
or⌘N
) - Search for
Architecture
section and choose between available templates
-
VIPER (TabBar module)
- Application Logic
- Interactor
<module_name>Interactor.swift
<module_name>InteractorIO.swift
- Service
<module_name>Service.swift
<module_name>ServiceType.swift
- Interactor
- Module Interface
<module_name>ModuleInterface.swift
- User Interface
- Presenter
<module_name>Presenter.swift
- View
<module_name>ViewController.swift
<module_name>ViewInterface.swift
- Wireframe
<module_name>Wireframe.swift
- Presenter
- Application Logic
-
VIPER (TabBar module + model)
- Application Logic
- Interactor
<module_name>Interactor.swift
<module_name>InteractorIO.swift
- Model
<module_name>.swift
- Service
<module_name>Service.swift
<module_name>ServiceType.swift
- Interactor
- Module Interface
<module_name>ModuleInterface.swift
- User Interface
- Presenter
<module_name>Presenter.swift
Display<module_name>.swift
- View
<module_name>ViewController.swift
<module_name>ViewInterface.swift
- Wireframe
<module_name>Wireframe.swift
- Presenter
- Application Logic