Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Swiftui Patterns?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-swiftui-patterns)
---
name: swiftui-patterns
description: "SwiftUI patterns: state ownership (@State, @Observable), navigation, concurrency with actors, previews and testing."
tags: [swift, mobile]
---
# Swiftui Patterns
## When to use
- iOS apps
## Procedure
1. Own state at the right level
2. Use @Observable models
3. Use async/await and MainActor for UI
4. Keep views small
5. Snapshot/preview states
## Checklist
- [ ] No force unwraps in views
## Anti-patterns
- Massive views with business logic