Skip to content

Some Xcode simple templates for Swift developers using Quick

License

Notifications You must be signed in to change notification settings

Bootstragram/xcode-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Xcode Templates

This repository contains some custom Xcode file templates.

Installation

  • Clone the repo
  • ln -s <repo_directory> ~/Library/Developer/Xcode/Templates/Custom

Why use custom templates?

  1. Save time when creating files in Xcode
  2. Who needs a file header?

Some blog posts inspired me to start using my own templates:

And some references to write them:

The Templates

Swift File Template

The Swift File template is just an empty file:

  • I don't want some header
  • I don't want to decide if I'm going to write a struct, a class or an enum just yet

Why not just use the empty file template? Because it started not empty but, over time, it became empty. I want to keep that in mind.

Quick File Template

The Quick File Template looks like:

import Quick
import Nimble
@testable import MyTarget

class FileSpec: QuickSpec {
    override func spec() {
        describe("my spec") {
            it("has a dummy test") {
                expect(true).to(beTrue())
            }
        }
    }
}

About

Some Xcode simple templates for Swift developers using Quick

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published