Skip to content

drxlx/XcodeCodeSnippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XcodeCodeSnippets

A set of snippets for Xcode.

Requirements

Xcode 7.3.1 or later.

Installation

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

List of snippets

Comments

  • 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

Code

  • 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.

Preview

ezgif-4-770bdfd9ab

Author

iSmetanin, smetanin23@yandex.ru

License

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

About

Code snippets for Xcode.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%