swift
Installation
SKILL.md
Google Swift Style Guide
Official Google Swift coding standards for consistent, maintainable iOS/macOS code.
Golden Rules
- Clear, descriptive names — readability at the call site
- Prefer
letovervar— immutability by default - Use optionals properly — avoid force unwrapping (
!) - Protocol-oriented programming — prefer protocols over inheritance
guardfor early returns — reduce nesting with early exits- Use type inference — let Swift infer types when obvious
- SwiftLint for consistency — automate style enforcement