Home

Awesome

PRs Welcome

XcodeCodeSnippets

A set of snippets for Xcode.

Requirements

Xcode 7.3.1 or later.

Installation

To install or update the snippets you need:

cd ~/Downloads
git clone https://github.com/ismetanin/XcodeCodeSnippets
mkdir -p $HOME/Library/Developer/Xcode/UserData/CodeSnippets
cp XcodeCodeSnippets/CodeSnippets/* $HOME/Library/Developer/Xcode/UserData/CodeSnippets
rm -rf XcodeCodeSnippets

Or if you have a cloned repository:

List of snippets

MARKs

There are MARKs for Swift and Objective-C. For Swift there is prefix before each // MARK: - and for Objective-C prefix is #pragma mark -.

Shortcuts are equal to snippet body for example for // MARK: - Properties shortcut is Properties.

<details> <summary>Available MARKs</summary> <br>
Snippet
Just empty mark (// MARK: - or #pragma mark - )
Nested types
Constants
Subviews
NSLayoutConstraints
Properties
Public properties
Readonly properties
IBOutlets
Initialization and deinitialization
UITableViewCell
UIViewController
Actions
IBActions
Public methods
Internal methods
Private methods
</details>

Code

Author

Ivan Smetanin, smetanin23@yandex.ru

License

XcodeCodeSnippets is available under the MIT license. See the LICENSE file for more info.