swift optionals

Optionals in Swift

Optional in Swift means the possibility of absence of a value for variable or constant. Optionals are required in many cases in real world programming. Declaring optionals is very simple. You just need to write the type with a trailing question mark