How to post a submission in swift