Swift Programming language related code snippets