Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ImaginativeShohag/d5dac31e4d36215536a314eb5754954e to your computer and use it in GitHub Desktop.
Save ImaginativeShohag/d5dac31e4d36215536a314eb5754954e to your computer and use it in GitHub Desktop.
Example of Swift comments (eg., `MARK`, `TODO`, `FIXME`), `#warning` macro and `#error` macro
// MARK: Feature One (No divider)
class FeatureOne {}
// MARK: - Class Two start (Top divider)
class FeatureTwo {}
// MARK: Class Two end - (Bottom divider)
class FeatureThree {}
class FeatureFour {}
// MARK: - With top and bottom divider -
class FeatureFive {
// TODO: Example Todo comment (Use `-` same as `MARK` for divider)
// FIXME: Example Fix me comment (Use `-` same as `MARK` for divider)
}
// Here is a <#placeholder#> example.
#warning("Example warning")
#error("Example error")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment