Code snippets are a way to share iOS practices and facilitate their integration inside Xcode projects.
You can browse code snippets in the CodeSnippet folder. Each snippet resides in its dedicated folder and provides a README
file.
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.
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.
See the contribution guide.