Optionals in Swift

Optional in Swift means the possibility of absence of a value for variable or constant. In general a variable/constant is not allowed to have nil value, unless it is explicitly mentioned that the variable can go nil. For example will not compile. Why Optionals are needed Optionals are required in many cases in real world… Continue reading Optionals in Swift