Every week, new content is published to the growing Treehouse Library! Here is a short list of what was added the week of November 30, 2015.
Swift Enumerations and Optionals – Pasan Premaratne
Two of Swift’s most novel features over Objective-C are the extended power of enumerations and the language features to deal with nil values. In this course we’re going to start by exploring enumerations in Swift – how they can define a set of related values, how they can carry associated values and how they make our code much safer by bringing in some wonderful compiler support. After that we take a look at optionals and dealing with nil values. Working with optionals can get pretty confusing so we understand why we do this in the first place and how we can unwrap the values when we need them.
Interested in learning more? Sign up for a Free Trial and get started today!