What problem does it solve?
Refactor and review SwiftUI view files with strong defaults for small dedicated subviews, MV-over-MVVM data flow, stable view trees, explicit dependency injection, and correct Observation usage. Use when cleaning up a SwiftUI view, splitting long bodies, removing inline actions or side effects, reducing computed some View helpers, or standardizing @Observable and view model initialization patterns.
Core Features & Use Cases
- Subview extraction and modularization to simplify complex screens
- MV-first data flow over MVVM to reduce coupling and improve testability
- Explicit dependency injection via environment or initializer to improve testability
- Stable view trees by avoiding large, top-level conditional root views
- Guidance on avoiding side effects in view bodies and moving logic into services/models
- Standardization of observation usage and view model initialization patterns
Quick Start
Begin by identifying a large SwiftUI view, break it into smaller subviews, and apply explicit dependency injection and MV-first patterns.