[Swift] Fix syntax errors

Fix #482