update swift demo