guide-swiftui-view-refactor

Community

Refactor SwiftUI views for safer, cleaner code.

Authorannurdien
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Enforces a consistent SwiftUI view structure to reduce layout churn and state-management fragility.

Core Features & Use Cases

  • Enforces a consistent view ordering from Environment to helpers.
  • Promotes MV-friendly patterns, smaller subviews, and safe view model usage.
  • Use when cleaning up a SwiftUI view's layout, dependencies, and Observation initialization.

Quick Start

Refactor a SwiftUI view file to align with the guide by reordering properties, injecting dependencies via Environment, and splitting large bodies into subviews.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: guide-swiftui-view-refactor
Download link: https://github.com/annurdien/skills/archive/main.zip#guide-swiftui-view-refactor

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.