In this Swift Tutorials : Swift Basics lesson we will tell you how to comment your code in Swift.

Before you start please Create or open a Swift Playground .
For this lesson use a playground titled 1.Swift Tutorials by the Apps-Top.com, created in the first Swift Basics lesson or create the new one.

Follow Along

To comment your code in Swift just use //

Open a swift playground and type:

To create a multiline comment use /* */

You can also create nested multiline comments

As a result you will see the following in your playground:

Discover all tutorials at 👉 Swift Tutorials Navigation

Previous Lesson // Next Lesson

This lesson is a part of Swift Tutorials and Lessons created by the Apps-Top.com Team. Feel free to save and share this post to social if you find this lesson useful or helpful.