Add sample code for swift.