view-complexity
CommunitySimplify complex SwiftUI views.
Software Engineering#refactoring#swiftui#code optimization#view complexity#computed properties#type checker
Authormoasq
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the challenges of managing large and complex SwiftUI view bodies, preventing type-checker timeouts and improving code maintainability.
Core Features & Use Cases
- Body Decomposition: Breaks down lengthy
Viewbodies into smaller, manageable computed properties. - Nesting Reduction: Flattens deeply nested view structures.
- Type-Checker Timeout Prevention: Refactors complex expressions and modifier chains to aid Swift's compiler.
- Use Case: When a SwiftUI view's
bodyexceeds 30 lines or the Swift compiler struggles to process it, this Skill can refactor it into cleaner, more efficient code.
Quick Start
Refactor the attached SwiftUI view to extract its header section into a computed property.
Dependency Matrix
Required Modules
None requiredComponents
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: view-complexity Download link: https://github.com/moasq/nanowave/archive/main.zip#view-complexity Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.