This is a modification of Clean-Swift Template made by Daniele Boscolo and Eduardo Pinto.
Swift 3
This modification aims to create work-ready templates. Furthermore we added some extra features in order to attempt to solve some issues.
Here is a list of what is modified:
- Followed the Swift Style Guide by Raywenderlich (https://github.com/raywenderlich/swift-style-guide#naming)
- Indent is changed to a standarized 4-spaces indent
- Removed worker auto-creation from Scene template
- Removed output protocols
- Router is called of Presenter instead of going through View Controller
Added features:
- Configurator based on dependecy injection using Swinject and SwinjectStoryboard (Scene configuration is triggered on View Controller instantiation time from Storyboard)
-
First of all, you have to install the dependency injection framework Swinject.
-
After that, to install the template you only have to open the
File Templates
path in Finder, and paste the Clean-Swift Template there:
~/Library/Developer/Xcode/Templates/File Templates