Skip to content

gopal-iosdev/ios-xcode-snippets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS Xcode Snippets

Helpful Swift 5.7 code snippets to use in all your Xcode projects.

How to copy code snippets to your Xcode ?

  1. Open Finder and type cmd + shift + G
  2. Paste ~/Library/Developer/Xcode/UserData/CodeSnippets/ and press "Go" button
  3. The folder* will open, paste all the .codesnippet files
  4. Restart Xcode

*If the folder doesn't exists create it.

How to use code snippets ?

  • Type snippet and access the code snippets you just added

Code Snippets

snippetAddObserver              Add observer
snippetAdhoc                    Checking for build scheme
snippetAdhocOnly                Checking if the build scheme is ADHOC
snippetAlert                    Present alert or action sheet with two default actions
snippetMark                     Simple MARK with a placeholder to complete
snippetMarksModel               MARKs for models
snippetMarksUIViewController    MARKs for UIViewController
snippetPostObserver             Post observer
snippetSingleton                Generic singleton class
snippetWarning                  Useful as a reminder to yourself or others that some work is incomplete.

About

iOS Xcode Snippets updated for Swift 5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%