updated docs for swift