swiftui-view-refactor

Originally fromdimillian/skills
Installation
SKILL.md

SwiftUI View Refactor

Overview

Apply a consistent structure and dependency pattern to SwiftUI views, with a focus on ordering, Model-View (MV) patterns, careful view model handling, and correct Observation usage.

Core Guidelines

1) View ordering (top → bottom)

  • Environment
  • private/public let
  • @State / other stored properties
  • computed var (non-view)
  • init
  • body
  • computed view builders / other view helpers
  • helper / async functions

2) Prefer MV (Model-View) patterns

  • Default to MV: Views are lightweight state expressions; models/services own business logic.
Related skills

More from dagba/ios-mcp

Installs
23
Repository
dagba/ios-mcp
GitHub Stars
3
First Seen
Jan 23, 2026