Refactors SwiftUI views to ensure consistent structure, clean dependency injection, and optimized Observation usage.
This skill streamlines SwiftUI development by applying professional structural standards to view files, transforming cluttered UI code into maintainable, production-ready components. It automatically reorders view properties (from Environment to Helpers), enforces Model-View patterns, and ensures safe View Model initialization using modern @Observable macros. By intelligently splitting large view bodies into composable subviews and managing dependency injection through view initializers, it improves code readability and architectural integrity without altering your existing business logic.
Características Principales
01Non-optional View Model initialization and safe dependency injection
02Code organization via MARK extensions for files exceeding 300 lines