GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — xcode-snippets/README.md at master · Abizern/xcode-snippets

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
23 lines (14 loc) · 875 Bytes
/

README.md

Copy path

File metadata and controls

23 lines (14 loc) · 875 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

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 are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.