Searching for: String Variables in Swift
Properties are variables declared within classes or structures. There are three types: instance properties, static properties. There are also lazy properties, which are either instance or static properties, and are only initialized when used. Equivalent to fields in other languages.
Printing is used to output text directly to the console.
Enumerations are used to group related values together. These values can either be raw or have associated values of primitive types (String, Int, etc.).
In Swift, variables must have a value. Optionals are used to assign a value of nil to a variable, if no value is provided. Optional variables cannot have their values accessed directly. They need to be 'unwrapped' in order for the value to be used.
Next Page >