Swift Xcode Template
A template used to create new swift classes.
Hope you'll find the template useful. You are free to use/modify the template for your own needs!
Installation and Usage
To install, copy Swift Class.xctemplate
folder to ~/Library/Developer/Xcode/Templates/File Templates/Source
(create folder if not exists), or just type the command sh setup.sh
in the terminal.
After copying, the templates are ready to use (no Xcode restart is required!).
Usage of Project Templates
To use file template, you can do the following steps.
- Create a new file, then select Source from iOS section of Xcode New File Window
- Select
Swift Class
on the right - You can select
Make the class Final
andIntent two spaces per tab
to modify your class.