In this Swift 3 Tutorials : Swift Basics lesson we will tell you how to create a constant in Swift

Before you start please Create or open a Swift Playground .
For this lesson use a playground titled 1.Swift 3 Tutorials by the Apps-Top.com : Swift Basics

Follow Along

To create or declare a constant in Swift use let keyword. The main difference between constants and variables is that you can’t change a value of a constant in the future.

Open a swift playground and type:

Human gender and eye color usually don’t change in the future and are the good examples of constants.

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.