brunogama / ios-xcode-snippets

iOS Xcode Snippets updated for Swift 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iOS Xcode Snippets

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

How to use?

  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
  5. Type snippet and access the code snippets you just added

*If the folder doesn't exists create it.

Code Snippets

snippetAddObserver              Add observer
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
snippetUserDefaultsVariable     Add a variable of any Type to UserDefaults
snippetViewDidAppear            viewDidAppear for UIViewController
snippetViewDidDisappear         viewDidDisappear for UIViewController
snippetViewDidLoad              viewDidLoad for UIViewController
snippetViewWillAppear           viewWillAppear for UIViewController
snippetViewWillDisappear        viewWillDisappear for UIViewController

More information about Code Snippets on this link.

About

iOS Xcode Snippets updated for Swift 5

License:MIT License