Setting default values for NSUserDefaults

Apple's UserDefaults type provides an interface to the default database associated with an application. It's most commonly used to store user preferences. In this post, Sarun Wongpatcharapakorn shows us how to set default values for such stored preferences in Swift.