update swift post and fix a bug in index.html