Clean Swift Architecture Xcode Template
- Download Clean Swift Template or clone the project
- Copy the
CleanSwift
folder to~/Library/Developer/Xcode/Templates/File Templates
- Create a new folder e.g. "Sample" for your scene
- Create a new file (
Right Click > New File...
,File > New > File
or⌘N
) - Choose
Scene
inClean Swift
section;
- Type your folder name, then click next;
- Select all added folders;
- Delete selected folders with remove reference selection (
Right Click > Delete -> Remove Reference
);
- Click the folder and select
Add Files to...
(Right Click > Add Files to 'Project Name'
)
- Then add all the folders we deleted before;
- It is ready;