# Camilooscargbaptista Cto Toolkit Swift Review

> Swift / iOS Code Review

- Skill: `tomevault-io/camilooscargbaptista-cto-toolkit-swift-review` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/camilooscargbaptista-cto-toolkit-swift-review`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/camilooscargbaptista-cto-toolkit-swift-review/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/camilooscargbaptista-cto-toolkit-swift-review

---


# Swift / iOS Code Review

## When to Use
- Reviewing Swift/iOS code (SwiftUI, UIKit, Combine)
- Evaluating iOS architecture (MVVM, TCA, VIPER)
- App Store compliance review
- iOS performance and memory review

## Review Checklist

### Architecture
- [ ] MVVM or TCA architecture consistently applied
- [ ] View models don't import UIKit/SwiftUI
- [ ] Protocol-oriented design for dependencies
- [ ] Coordinator pattern for navigation (if UIKit)
- [ ] `@EnvironmentObject` / `@StateObject` used correctly

### Swift Best Practices
- [ ] Value types (`struct`) preferred over reference types (`class`)
- [ ] `let` preferred over `var` (immutability)
- [ ] Guard clauses for early returns
- [ ] `Result<Success, Failure>` for error handling
- [ ] `Codable` for JSON parsing (not manual parsing)
- [ ] `async/await` instead of completion handlers (iOS 15+)
- [ ] Property wrappers for common patterns
- [ ] Access control (`private`, `internal`, `public`) enforced

### SwiftUI
- [ ] Views are small and composable (< 50 lines body)
- [ ] `@State` for local, `@Binding` for parent-child, `@ObservedObject` for injected
- [ ] No heavy computation in `body` (use `.task {}` modifier)
- [ ] Preview providers for all views
- [ ] Accessibility modifiers (`.accessibilityLabel`, `.accessibilityHint`)
- [ ] Dark mode support verified

### Memory & Performance
- [ ] No retain cycles (`[weak self]` in closures)
- [ ] `Instruments` profiled for leaks
- [ ] Images resized to display size (not full resolution)
- [ ] TableView/CollectionView cell reuse
- [ ] Background tasks for heavy work (`DispatchQueue.global()`)
- [ ] Core Data batch operations for large datasets

### App Store Guidelines
- [ ] No private APIs used
- [ ] In-App Purchase for digital goods (not external links)
- [ ] Privacy manifest (`PrivacyInfo.xcprivacy`) included
- [ ] Required device capabilities declared
- [ ] App Transport Security exceptions justified
- [ ] No hardcoded test data in release builds

## Output Format
```markdown
## iOS Review: [Module]
**Health Score**: X/10
### Issues | Improvements | Architecture Notes
```

---
> Source: [camilooscargbaptista/cto-toolkit](https://github.com/camilooscargbaptista/cto-toolkit) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-23 -->

