Skip to content

Instantly share code, notes, and snippets.

@Drarok
Created January 26, 2015 17:23
Show Gist options
  • Save Drarok/7b2fb47658f6869eb8a1 to your computer and use it in GitHub Desktop.
Save Drarok/7b2fb47658f6869eb8a1 to your computer and use it in GitHub Desktop.
Pragma-style markers in Swift
// MARK: - Section1
func section1Method0() {
}
// MARK: Test1-1
func section1Method1() {
}
// MARK: Test1-2
func section1Method2() {
}
// MARK: - Section2
func section2Method0() {
}
// MARK: Test2-1
func section2Method1() {
}
// MARK: Test2-2
func section2Method2() {
}
// Looks like this in Xcode 6: https://dl.dropboxusercontent.com/u/685015/Screenshots/Screen%20Shot%202015-01-26%20at%2017.21.58.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment