Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds and reviews SwiftUI views using modern MV architecture, @Observable state, view composition, isolated previews, and iOS 26+ APIs.
Use this skill ↓68% 91%+23 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 15 of 22 without it.
3 of 3 safety checks passed
Not used yet
Load this reference when restructuring an existing SwiftUI view without an explicit request to change its interface or behavior.
A structure-only refactor preserves:
Record intentional changes separately. Do not let cleanup silently become a visual redesign, navigation rewrite, or business-rule change.
Use the extraction signals in the main skill. Dedicated View types are the default
for sections with substantial layout or branching, their own state or lifecycle,
narrower dependencies, independent preview value, or enough complexity to obscure
the parent's data flow. Keep only genuinely small stateless fragments as computed
some View properties. Extensions and // MARK: headings organize a file; they do
not create view boundaries. Do not replace one oversized body with a screen-sized
extension made of computed some View fragments.
Move non-trivial button actions and lifecycle closures to small named methods so
body reads as UI:
Button("Save", action: save)
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.