Creative Design & Branding
SwiftUI View Refactor
Restructures an existing SwiftUI view without changing what the user sees: splits an oversized body into small view types with narrow inputs, moves actions and business logic out of the view, replaces type erasure and duplicated branches, fixes state ownership, and migrates ObservableObject models to the Observable macro. Works in small steps that each build, and reports what moved and what could behave differently. Use when the user says "clean up this SwiftUI view", "this body is 300 lines", "split this view into subviews", "get the logic out of the view", "migrate to @Observable", "remove the AnyViews", or asks for a refactor of a SwiftUI file with no feature change.
- Publisher / source
- TerminalSkills Library
- Upstream record
- TerminalSkills/skills
- Version
- Version 3
- Published
- Publication review
- Approved for publication · recorded passed scan 2026-10-27
- Content fingerprint
302a225ff7e3945736cf8205c373fc8162bef7c371d413c0d56ec3cc037aa950