SwiftXcodeFileTemplates icon indicating copy to clipboard operation
SwiftXcodeFileTemplates copied to clipboard

Xcode File Templates for Swift Code

SwiftXcodeFileTemplates

Xcode6 File Templates for Swift Code.

Installation

These can be added to your XCode by moving the Swift folder into ~Library/Developer/Xcode/Templates/File Templates/

Or get them from Alcatraz which is the most easy way.

To Use

In a XCode Project. File>New>File From there you should see an option for Swift, with the new templates

Current Templates

Singleton - A Singleton Class

Swit Type - Similar to the Objective-c File, which allows you to create a Protocol, Extension, Struct in swift

Swift XCTestCase - An XCTestCase subclass.