motionApp using Swift