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...

Swift for Rubyists: Dictionaries

This post is the second in a series I am doing on Swift for Rubyists. Forgive me for the lines that wrap on this one. I did the best I could to try and format them on one line, but all of the examples from this post are available as a playground to download at this repo. Update: Apparently, my changes to fix the "<" & ">" symbols missing in the examples didn't save. Fixed now. Swift...