In this Swift Tutorials : Swift Basics lesson we will tell you about basic operators 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 playground.

Follow Along

Assignment operator:  =

Open a swift playground and type:

Comparison operators: == , != , > , < , >= , <=

The arithmetic operators are: + , – , * , /

Remainder operator %

Unary minus

Compound assignment operator

As a result you must see the following in your playground now:

operators Swift : Apps-Top.com

operators Swift : Apps-Top.com

Let’s Continue

Ternary conditional operator

Range operators

Logical Operators

As a result you must see the following in your playground now:

Basic Operators , Swift

Basic Operators , Swift

Now you know about basic operators in Swift and Swift (using Swift 3)

Discover all tutorials at 👉 Swift Tutorials Navigation

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.