update post for swift