swiftui-patterns

swiftui patterns

affaan-m 232k ↓ 5.3k MIT updated 25d ago
Claude Code
View source ↗

What it does

  • Building SwiftUI views and managing state (@State, @Observable, @Binding)
  • Designing navigation flows with NavigationStack
  • Structuring view models and data flow
  • Optimizing rendering performance for lists and complex layouts
  • Working with environment values and dependency injection in SwiftUI
  • Never perform I/O, network calls, or heavy computation inside body
  • Use .task {} for async work — it cancels automatically when the view disappears

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

swiftui patterns

Source

Repository: https://github.com/affaan-m/everything-claude-code

swiftui-patterns FAQ

What does the swiftui-patterns skill do?

SwiftUI architecture patterns, state management with @Observable, view composition, navigation, performance optimization, and modern iOS/macOS UI best practices. Building SwiftUI views and managing state (@State, @Observable, @Binding) Designing navigation flows with NavigationStack

How do I install swiftui-patterns?

Run: npx -y skills add https://github.com/affaan-m/everything-claude-code --skill swiftui-patterns --agent claude-code — the source lives at github.com/affaan-m/everything-claude-code.

Maintain swiftui-patterns?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

swiftui-patterns on getagentictools
[![swiftui-patterns on getagentictools](https://getagentictools.com/badge/skills/affaan-m-everything-claude-code-swiftui-patterns.svg)](https://getagentictools.com/skills/affaan-m-everything-claude-code-swiftui-patterns?ref=badge)
npx agentictools info skills/affaan-m-everything-claude-code-swiftui-patterns

The second line is the CLI lookup for this page — handy in READMEs and docs.