demo with swift