Installing the Clean Swift Template in Xcode

Dejan Atanasov
Jul 28, 2018 · 3 min read

Clean Swift becomes more and more popular amongst iOS Developers. This short tutorial will show you how to install the template in Xcode and start using it for your next great projects.

#1 Download the Template

I have uploaded it on Google Drive. You can download the latest template from this link.

#2 Install the Template

After unzipping the file, you should open Terminal and access the root directory of the folder by using cd CleanSwift .

Now, all you have to do is running the following command make install_templates. If you wish to uninstall the template just run make uninstall_templates.

To verify if the template has been installed properly, you should open the following path ~Library/Developer/Xcode/Templates/File Templates and search for a folder named CleanSwift.

#3 Create a New Scene

Assuming everything went well in the above steps, I will now show you how to create a new Scene. Create a new test project (or open some of your existing ones), and go to File -> New -> File (or press ⌘N) which will open the Xcode templates window.

Scroll to the bottom of the list and you should see the CleanSwift section with all the files. In 100% of the cases when you create a CleanSwift template, you will use a Scene. By pressing on the Scene and adding the desired name, it will generate all the needed files at once.

That's it from this tutorial and I hope that it helped you start with this amazing Swift architecture. 👏 or share so others like you can find it.

Thank you for your attention! 🚀

If you want to learn more about Clean Swift, please visit the below story where I am making an introduction to the architecture. 👇

NOTE: The above tutorial is based on the first version of the CleanSwift template, but the general principles are still used in the latest one. I will update the link with the new story when I finalize it.

That’s it from this tutorial and if it helped you please 👏 or share this story so others like you can find it. Thank you for your attention! 🚀

Check out my latest projects:

Read more stories on Medium:

Subscribe to my Newsletter:

Swift2Go

a place where Swift Developers share knowledge.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store