How to Use Swift Computed Properties to Create a Simple Goal Tracker Class

This is the fourth Swift tutorial and video in a series I'm doing on Swift development. Source code examples are available on GitHub In this tutorial, we’re going to take a look at Swift computed properties and how they work. We’re going to create a very simple GoalTracker class. All our GoalTracker class is going to do is track our progress through something, i.e. how many miles or...

How to Create a NSNumberFormatter Singleton in Swift

This is the third post and screencast in a series I'm doing on Swift development. Source code examples are available on GitHub Singletons are a popular design pattern in programming. If you are new to Swift, you may be wondering how you can create singletons in Swift. In Objective-C, you might have tried Grand Central Dispatch's dispatch_once to create a singleton. Well, the other day, I came...

Swift var vs. let – Screencast

My latest screencast is now available! This time I cover var vs. let in Swift. Topics I cover include: - The difference between Var and Let - Examples of variable values types like Strings and Ints - How properties of reference types, like Classes, are affected - I show an example using multiple classes and properties including inherited properties - I demonstrate how properties of constant...

Introduction to Swift Arrays – Screencast

My first screencast on Swift development covers an introduction into Swift Arrays. This is the first screencast in a series I'm doing on Swift development. Here's some topics that I cover in this video: - How to create an array in Swift - Declaration and Initialization of arrays in Swift - Retrieving an item from an array - Adding to a Swift array - Iterating over the items in a Swift array The...

Swift Development Videos and Changes

I'm excited to announce that I am releasing a series of screencasts on Swift development. I'm going to cover a variety of topics on Swift development over the coming weeks. Stayed tuned for more! However, I decided to discontinue my series on "Swift for Rubyists". I've felt that I can cover more topics in getter detail using screencasts and covering Swift in general. Hope you enjoy the new...