rewrite the project use swift in xcode6