Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.06 KB

README.md

File metadata and controls

26 lines (21 loc) · 1.06 KB

XCode-Snippets

Useful snippets for XCode

Setup

  1. Clone repository to your CodeSnippets folder: ~/Library/Developer/Xcode/UserData/CodeSnippets
git clone https://github.com/johnny12000/XCode-Snippets.git CodeSnippets

List of Snippets

Key Description
1A8FC1FC-733A-404D-B9A0-3ABC055E0EBA Prepare for segue
swift-comment.codesnippet Method header comment
795E1DDD-24A4-4A0E-B0A3-5B2A64631034 Get reusable cell in table
2B0EB679-5AB0-486F-93F7-77CE8A140074 Normalize image to a certain size
3AD6A987-1971-4DF4-8093-C851D1BD8708 Switch statement for different iPhone screen sizes
CB1439CF-DDC2-47B9-8ED7-BA4BC487286D Hide keyboard on touch anywhere
FF32FA07-87C4-4288-8D21-16C365A45A0D Serializes object to string
DAE1CC92-3B1F-4AD9-B5E7-3E697F757DC9 Capture a weak reference to self for block
9B2898F0-0BA0-4942-9FA1-BB675C62CAD2 Singleton pattern
2CE4894B-5828-40DC-A69F-FF37E5FF33AA Table delegate and source methods
9B2A8FDA-8851-4D52-8DA6-B5C0F578D910 Swift comment