Last active
June 12, 2024 10:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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