Optional Types in Swift – How to Use and Unwrap Optionals

If you’re coming from Java, C++, or other object-oriented languages, chances are that you’ve never come across optional types or “optionals”. And you might be quite surprised to know that such a concept exists in Swift. Optionals are a fundamental topic that you need to thoroughly understand to code in