Swift: Type casting for Any and AnyObject

Any can represent an instance of any kind of type and AnyObject can represent an instance of a class type.   Advertisements


Swift: Type Cast operator

A constant or variable may refer to an instance of a subclass behind the scenes. In order to downcast them […]

Swift: Compound Assignment Operator

Compound Assignment Operator combines the assignment operation with other operations. They don’t return a value. It mean the following expression   […]

Swift: Assignment operator

Assignment operators in Swift perform two basic functions: Initialise a value or update a value. Consider the example  . Here the […]