This article was originally published on my website.
In this tutorial, we’ll learn how to deal with Optionals in Swift.
What are optionals?
Optionals are Swift Language traits that lets the programmer operate on a variable that may or may not have a value at a particular instance. Usually, this applies to async tasks such as Networking: When you make a request to a server for, say, a list of cat pictures the data in the variable will take some time to arrive. During this loading time if you’d try to access the value within this…