view-composition

Community

Structure SwiftUI views for clarity.

Authormoasq
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the challenge of organizing and structuring SwiftUI views to improve readability, maintainability, and reusability, especially in larger codebases.

Core Features & Use Cases

  • Modular View Design: Encourages breaking down complex views into smaller, manageable @ViewBuilder computed properties.
  • Code Organization: Provides clear guidelines on when to extract view components into separate structs or files based on size, reusability, or state management needs.
  • Naming Conventions: Establishes consistent naming patterns for view sections and action buttons to enhance code clarity.
  • Use Case: When building a detailed settings screen in a SwiftUI app, use this Skill to ensure each section (e.g., Account, Notifications, Privacy) is a distinct @ViewBuilder property, making the overall body a clean outline.

Quick Start

Apply the view composition rules to refactor the provided UserProfileView code.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: view-composition
Download link: https://github.com/moasq/nanowave/archive/main.zip#view-composition

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 223,000+ vetted skills library on demand.