update swift example for XCode 6.1