The process of attempting to assign an optional value to a constant in a conditional statement to see if the optional contains an underlying value.
Back
Local Scope
Front
A local variable has been defined within a specific block of code, or within the program.
Back
Enum
Front
This keyword declares a type made up of a group of related choices.
Back
Type Inspection
Front
Is used to determine, or check, the specific type of data.
Back
Nested optional
Front
An optional properties (like a box within a box).
Back
Optional Chaining
Front
Allows you to work with nested optional that are conditionally unwrapped.
Back
Variable Shadowing
Front
This occurs when a variable declared within a local scope has the same name as a variable declared in a global scope.
Back
Nil
Front
Indicates that a value is missing.
Back
Case
Front
In an enum, this keyword declares a name for one of the enum's options. In a switch, this keyword introduces a pattern to try to match a value against.
Back
AnyObject
Front
This object can represent any class within Swift, but not a structure.
Back
Guard-let
Front
Using this statement for requirements improves the readability of your code, as opposed to using an if statement for the same check.
Back
Failable initializer
Front
Refers to an initializer that may fail and will return nil as a result.
Back
Global Scope
Front
This variable has been defined at the top-level scope, of a program.
Back
Conditional Cast
Front
An instance to the specified type only if it's possible to do so.
Back
Downcast
Front
Using this can canst an object to a more specific type.
Back
Force-unwrap
Front
You will use this operator (!) after an optional value to access its underlying value.
Back
Optional
Front
A value that contains either an underlying value or nil )to indicate that the value is missing).
Back
As?
Front
A conditional cast operator that attempts to downcast the value to a more specific type and store it in a new constant or variable.
Back
Any
Front
As the name implies, can represent an instance of any type: string, doule, function, or whatever.
Back
Scope
Front
A type, variable, constant or function is accessible only within the scope it was assigned. By adding a pair of curly braces ({ }) for a function, an if statement, or a for loop, you're specifying the area within the braces.
Back
Implicitly unwrapped optional
Front
an optional that can also be used like a nonoptional value
Back
Type Casting
Front
A way to check the type of an object, or to treat that object as a different superclass or subclass from somewhere else in its own class hierarchy.
Back
Default
Front
This option is selected when no other option is available. In a switch statement, this block is executed if none of the other more-specific cases matches the input. In an if statement, this option is the final else clause.
Back
Guard
Front
This statement declares a conditional that must be true in order for the code after the guard statement to be executed.
Back
As!
Front
Is a forced form of a type cast operator. This version will force the downcast to the specified type.