Skip to content

SwiftyJourney/CodeSnippets-for-Xcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeSnippets for Xcode

License: MIT IDE: Xcode Language: Swift

Description

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.

Installation

Install snippets

To make an easy installation, you just need to run a command.

make install_snippets

Note: To run this command you need to be on the root folder where the Makefile is located.

Uninstall snippets

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.

Snippets

  • 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 Codable model.
  • Programmatic Root Scene (pgmroot): Add this snippet to your SceneDelegate when you don't want to use Storyboards. (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.

Contribution

In case you want to contribute to this Repo, feel free to create a Pull Request.

About

Bunch of useful snippets to help you with the boost your productivity while coding.

Resources

License

Stars

Watchers

Forks

Packages

No packages published