Swift code examples