What problem does it solve? Large SwiftUI view files accumulate inline actions, business logic, and conditional branch swapping that make 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, computed vars, init, body, helpers) and extracts dedicated subview types instead of computed some View fragments. - MV-First Data Flow: Moves business logic out of body into services and models, favoring @State, @Environment, @Query, and lifecycle modifiers over unnecessary view models. - Stable View Trees: Eliminates top-level if/else branch swapping and fixes Observation ownership (@State for @Observable on iOS 17+, legacy wrappers only when required). - Use Case: Given a 400-line SwiftUI screen with inline network calls and a giant body, split it into dedicated section views, move async work into services, and keep layout and behavior intact. ## Quick Start Use the swiftui-view-refactor skill to clean up and split this SwiftUI view file without changing its behavior.