Skip to content

faberNovel/CodeSnippet_iOS

Repository files navigation

CodeSnippet

Code snippets are a way to share iOS practices and facilitate their integration inside Xcode projects.

Browsing snippets

You can browse code snippets in the CodeSnippet folder. Each snippet resides in its dedicated folder and provides a README file.

Integrating code snippets in Xcode

As Xcode templates

To facilitate their integration inside Xcode, each code snippet is associated to s Xcode template.

To install the snippet templates in your machine, install xcresource and run xcresource template install. Run the command again to update them.

The snippet templates will be available inside Xcode anytime you create a new file (File > New > File or ⌘ + N).

Once integrated, a snippet can be modified as much as you want. It should be tested and understood by you.

As Xcode codesnippets

The repository contains snippets that can be added to your Xcode snippets library.

Run xcresource snippet install to install them locally on your machine. Restarting Xcode is required.

Contribute

See the contribution guide.