top of page
Got questions or suggestions?
Contact me at:
critchley55@yahoo.co.jp

pragmaSpoof

An Xcode productivity hack wrapped in a source editor extension in Swift
Do you still remember #pragma marks in Objective-C with fondness? Yeah, me too. They were great for organizing code into logically related methods and groups. Swift now has something similar, the //MARK: - ...err...mark. It will put a menu heading in your Xcode jump menu. It's green, so I put some bling around it to give it more header punch. Give this a key shortcut, and in one tap you get a Swift "pragma mark" with the insertion point moved to exactly where you need to start typing. 
bottom of page