Why Program Using Optionals in Swift (Episode 27)

Published: May 24, 2016, 2:46 a.m.

In this Swift video tutorial, we'll discuss the how's and why's of programming optional variables in any of your iOS or tvOS apps or games. Optionals allow you to test if a variable is nil or not. We'll go over testing for nil values, then safely forcing a value from an optional variable.