The Snippets are an amazing way to be more productive at the development time, they are bunch of code ready for an specific task.
Xcode already has some snippets for different purposes, also you can create your own.
The main idea in here is to create some snippets that could be helpful for me, and I hope to they be useful to you too.
To make an easy installation, you just need to run a command.
make install_snippetsNote: To run this command you need to be on the root folder where the
Makefileis located.
To delete the snippets just like the installation is an easy task, you just need to run the following command
make uninstall_snippets
⚠️ WARNING: Currently this command deletes all your snippets not just the installed ones from this repo.
- File from Bundle (bunfile): Get the path from a file in the bundle
- JSON Decoder for Path (decodepath): Lets you decode a file from an specific path and convert it to your
Codablemodel. - Programmatic Root Scene (pgmroot): Add this snippet to your
SceneDelegatewhen you don't want to useStoryboards. (iOS 13+) - SwiftUI view (view): Creates a simple view structure, it is basically the hardcoded code that you get creating a SwiftUI view file.
- View modifier (modifier): Creates the basic bolierplate code to create a custom view modifiers.
- Environment value (environment): Basic implementation for a custom environment value.
In case you want to contribute to this Repo, feel free to create a Pull Request.