Skip to content
Xcode Snippets for Swift 2, based on those by Mattt at https://github.com/Xcode-Snippets/Objective-C
Swift
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
async.swift
cdfetch.swift
cvds.swift
documents.swift
dot.swift
frc.swift
imv.swift
mark:.swift
pdel.swift
pds.swift
singleton.swift
testf.swift
todo:.swift
tvdel.swift
tvds.swift

README.md

xcode-snippets

Swift 2 snippets for Xcode

Just a few for the moment, based on those by Matt Thompson at https://github.com/Xcode-Snippets/Objective-C

Installing The Snippets

Manually

In Xcode 7, open a workspace and toggle the right sidebar to be visible. On the bottom, there is a panel with four icons in the header. Click on the { } icon to open the Code Snippets Library.

Now copy-paste the code from one of these snippets, highlight the code block you just pasted and drag it to the Code Snippet panel. Make sure to match the suggested platform, language, and completion scope. The completion shortcut corresponds to the filename of the code snippet.

Using the xcodesnippet gem

by @mattt, does the guy ever sleep?

First, install the gem gem install xcodesnippet

Then install the snippet you want with:

xcodesnippet install path/to/file
You can’t perform that action at this time.