WWDC 2014 Session 235 demo code translated into Swift