Comment The non-executable text in your code into hints or notes to make it easier for you to read in the future. The Swift compiler will automatically ignore the comment section when compiling the code.
Single-line Comment
Double forward slash (//) as the starting tag:
Multi-line comments
The start tag is followed by an asterisk (/*) after a single forward slash, and the Terminator is marked with an asterisk followed by a single forward slash (*/):
Multi-line comment block
Swift's multiline comments can be nested within other multiline annotations. You can make a multi-line comment block, and then nest the second multiline comment in the comment block. When terminating a comment, insert the terminating tag of the second comment block, and then insert the terminating tag of the first comment block:
By using nested multiline annotations, you can quickly and easily comment out a large chunk of code, even though the code already contains multiple lines of comment blocks.
Zhao Yazhi _swift (3) _swift Comment