Templates for iOS in Swift, based on different architectures.
- MVVM
- you can create an entire scene (View + ViewModel + Repository)
- optionally you can also create an ApiClient for a scene
- you can also create individual components ( a View, a ViewModel, etc)
- Open the terminal and go to the MVVM folder where the makefile is.
- Run: sudo make install_templates
If you want to uninstall them:
- make uninstall_templates
- Create a directory at this path: /Library/Developer/Xcode/Templates/File\ Templates
- open terminal
- mkdir -p /Library/Developer/Xcode/Templates/File\ Templates
- Copy the desired folder (for now: MVVM) as it is, in the folder created at step 1.
-
Open an Xcode project and create a new file => search at the bottom for the MVVM section.
-
Select the desired component, or an entire scene, name it and there you go!