In order to make templates visible for Xcode:
- Create File Templates catalog
mkdir ~/Library/Developer/Xcode/Templates/File\ Templates/
- Copy .xctemplate file to newly created catalog
mv View.xctemplate ~/Library/Developer/Xcode/Templates/File\ Templates/
-
Add new file in xcode (
โ + N) and scroll toFile Templates -
Select new template and name it whatever you like
TIP: You don't need to add file name suffix (e.g. -View, -ViewModel, -ViewController) it will be there.