Skip to content

A library of often used code snippets for internal use with Xcode.

License

Notifications You must be signed in to change notification settings

dimovskidamjan/Snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

{ Snippets }

A collection of often used code snippets for internal use with Xcode, reflecting latest trends and recommendations for writing Swift code.

Usage

Follow these steps to copy the code snippets from this repo to your Xcode.

  1. Download the repo zip file.
  2. Navigate to downloaded folder in Terminal.
  3. Run shell script using command: sudo sh script.sh
  4. Restart Xcode so that the changes take effect.

Contributions

If you want to add or edit a snippet, please follow these conventions:

  1. Prefix the snippet title with XS followed with the snippet name in (XS Snippet Name).
  2. Prefix the snippet autocompletion keyword with xs followed with the keyword(xsSnippetKeyword).
  3. Please use a descriptive title and write a snippet summary so that other users know what your snippet does.

Creating a new snippet

  1. Select the chunk of code you want to turn into a snippet in the Xcode editor.
  2. Open the Snippets section in the Utilities tab in Xcode.
  3. Drag your selected code to the snippets section.
  4. Fill out the fields in the resulting popup.

If you want to add a placeholder bubble in the snipped code, use <#placeholder#>.

About

A library of often used code snippets for internal use with Xcode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages