Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Abizern/xcode-snippets
Xcode Snippets for Swift 2, based on those by Mattt at https://github.com/Xcode-Snippets/Objective-C
https://github.com/Abizern/xcode-snippets
Last synced: 3 months ago
JSON representation
Xcode Snippets for Swift 2, based on those by Mattt at https://github.com/Xcode-Snippets/Objective-C
- Host: GitHub
- URL: https://github.com/Abizern/xcode-snippets
- Owner: Abizern
- License: mit
- Created: 2015-10-09T17:10:49.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-16T15:19:02.000Z (almost 9 years ago)
- Last Synced: 2024-06-21T11:26:54.276Z (5 months ago)
- Language: Swift
- Homepage:
- Size: 8.79 KB
- Stars: 460
- Watchers: 21
- Forks: 20
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xcode-snippets
Swift 2 snippets for XcodeJust 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
```