This repository contains custom Xcode file and project templates. See below for a full description and installation details.
The project templates appear in a Personal
group in the template browser. You can change the name of this group by changing the installation folder.
- Manual Single View App: This template builds on the Xcode single view app template but does not use a Storyboard. It creates the window and root view controller manually in the App Delegate. Project options allow you to choose the name of the view controller class and whether to embed it in a navigation controller.
The file templates appear in a Personal
group in the template browser. You can change the name of this group by changing the installation folder.
- UIKit Class: Custom
UIView
andUIViewController
file templates that call a privatesetupView
method to add views and constraints. The configuration options are similar to the default Cocoa Touch Class file templates.
-
If it does not yet exist create the
Project Templates
andFile Templates
folders under your home directory:$ mkdir -p ~/Library/Developer/Xcode/Templates/Project\ Templates $ mkdir -p ~/Library/Developer/Xcode/Templates/Files\ Templates
-
Copy the contents of the
Project Templates
andFile Templates
folders in this repository into the above folders. -
The templates appear in the Xcode file and project template browsers under a
Personal
group. You can change the name of this group by renaming the installation folder in theFile Templates
orProject Templates
folders:
See this blog post for more details on creating custom Xcode project templates: