swiftui-view-refactor

Community

Streamline SwiftUI views with clean structure.

AuthorPallepadehat
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Refactor and review SwiftUI view files to achieve a consistent structure, safer dependency handling, and standardized Observation usage. This helps teams reduce boilerplate, improve readability, and maintain predictable UI behavior.

Core Features & Use Cases

  • Enforce a top-to-bottom view order (Environment, private/public lets, @State, init, body, computed helpers) to improve readability.
  • Promote MV patterns by keeping views lightweight and injecting services via Environment, avoiding unnecessary ViewModels.
  • Support splitting large bodies into subviews or private computed views to keep code maintainable.

Quick Start

Refactor the provided SwiftUI view file to align with the swiftui-view-refactor guidelines: adjust property order, switch to MV patterns where appropriate, and standardize how @Observable state is initialized and passed.

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: swiftui-view-refactor
Download link: https://github.com/Pallepadehat/agentkit/archive/main.zip#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.