A set of snippets for Xcode.
Xcode 7.3.1 or later.
To install or update the snippets you need:
- Quit Xcode
- On the command line:
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:
- On the command line, cd into the directory with snippets and write
sh ./install.sh
- MARK: - Internal methods,
shortcut: Internal methods
- MARK: - Constants,
shortcut: Constants
- MARK: - IBOutlets,
shortcut: IBOutlets
- MARK: - IBActions,
shortcut: IBActions
- MARK: - Private helpers,
shortcut: Private helpers
- MARK: - Initialization and deinitialization,
shortcut: Initialization and deinitialization
- MARK: - Properties,
shortcut: Properties
- MARK: - NSLayoutConstraints,
shortcut: NSLayoutConstraints
- A template for creating TableViewAdapter,
shortcut: Table View Adapter
- A code block for creating user property in UserDefaults extension,
shortcut: Defaults Key
- A code block for layouting child view edges equal to a parent view edges,
shortcut: Constraints - layout child as parent
- A code block for creating object that implement TableCellGenerator and ViewBuilder protocols,
shortcut: implTableCellGenerator
. For more info about TableCellGenerator and ViewBuilder see ReactiveDataDisplayManager.
iSmetanin, smetanin23@yandex.ru
XcodeCodeSnippets is available under the MIT license. See the LICENSE file for more info.