swiftui-mvvm-pattern
OfficialSwiftUI MVVM guidance for clean, scalable apps
Authorco-labs-co
Version1.0.0
Installs0
System Documentation
What problem does it solve?
MVVM in SwiftUI often leads to scattered logic and hard-to-test UI code. This guide provides a structured approach to separate concerns, wire up ObservableObject view models, and promote testable, reusable components.
Core Features & Use Cases
- Structured ViewModel creation with ObservableObject and @Published properties
- View composition using @StateObject and data binding for responsive UI
- Clear data flow across common screen scenarios (list/detail, search, form input)
Quick Start
Create a ViewModel class conforming to ObservableObject with @Published properties, instantiate it in a SwiftUI view using @StateObject, and bind UI controls to the published properties to enable real-time updates.
Dependency Matrix
Required Modules
None requiredComponents
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: swiftui-mvvm-pattern Download link: https://github.com/co-labs-co/context-harness-skills/archive/main.zip#swiftui-mvvm-pattern 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 471,000+ vetted skills library on demand.