Comparison Operators Swift 4 supports all standard comparison operators of C language. Equal to (a == b) Not equal to (a !=…
Swift Tutorial
-
-
Remainder Operator Swift 4 remainder operator (a%b) specifies how many multiples of the second operand (b) will fit inside first operand (a)…
-
Ternary Conditional Operator The ternary conditional operator is used to shorten the code of if statement. It is a special type of…
-
Unary Minus Operator The unary minus operator is a prefixed (-) sign attached with a value. let three = 3 let minusThree…
-
Arithmetic Operators Swift 4 supports the four standard arithmetic operators of all number types: Addition (+) Operator Subtraction (-) Operator Multiplication (*)…
-
Assignment Operator Assignment operator is used to initialize or update the values of both its operands. For example, here (a = b),…
-
Compound Assignment Operators Swift 4 provides compound assignment operators that combine assignment (=) operator with another operator. One example of compound assignment…
-
Range Operators Swift 4 supports several types of range operators which are used as shorthand for expressing a range of values. Closed…
-
SwiftyJSON SwiftyJSON is an open-source library that helps developers use JSON in Swift without much difficulty. Swift is very strict about types…
-
Escaping and Non-Escaping Closures in Swift In swift, closures can be defined as the self-contained block of code that can be passed…