KinderSwift Episode 3: Variable Assignment in the Xcode Playground

In this episode of our beginner's series on Swift, we will dive into programming with the most fundamental part: assignment of values to identifiers. We'll use the new Xcode playground feature to explore var and let. We'll learn how to add numbers and a few tips about common syntax errors and the Xcode's autocomplete feature …

The Swift Swift Tutorial: Using Tuples and Creating Multiple-Return Functions

While not classified as a collection type by Apple, tuples are the new collection-like type found in Swift. Tuples fit in a strange place between structs and arrays, but allow for some rather remarkable flexibility in code -- particularly when returning more than one value in a function. While an array is a collection type …

The Swift Swift Tutorial: Ten Points for Using Optionals.

In the first month and a half of using Swift, I could argue the optional value is the most difficult new concept. It isn't hard, just something different to wrap one's head around. That Apple's documentation peppers information about optionals in two different e-books without consolidating the information doesn't help. I decided to combine what …