swift client source code