What problem does it solve? SwiftUI view files often grow into long, tangled bodies mixing layout, business logic, and conditional branching, making them hard to read, test, and maintain. This Skill restructures those views into small, explicit, stable view types without changing behavior. ## Core Features & Use Cases - View Structure Enforcement: Reorders view members (environment, state, init, body, helpers) and extracts dedicated subview types instead of computed some View fragments. - MV-First Data Flow: Keeps logic in services and models using @State, @Environment, @Query, and lifecycle modifiers, avoiding unnecessary view models. - Stable View Trees: Eliminates top-level conditional branch swapping and moves business logic out of body, .task, and .onAppear. - Use Case: Given a 400-line SwiftUI screen with inline actions and nested conditionals, split it into dedicated subview types with explicit inputs while preserving layout and behavior. ## Quick Start Use the swiftui-view-refactor skill to clean up and split this SwiftUI view file without changing its behavior.