skills/pproenca/dot-skills/swift-ui-best-practices

swift-ui-best-practices

SKILL.md

Apple Design Patterns SwiftUI Best Practices

Comprehensive guide for building Apple-quality iOS app UIs with SwiftUI, designed for AI agents to achieve principal-level one-shot native app development. Contains 51 rules across 9 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Building new SwiftUI views and screens
  • Implementing navigation flows and modal presentations
  • Adding animations, haptics, and transitions
  • Ensuring accessibility compliance (VoiceOver, Dynamic Type)
  • Optimizing performance for smooth 120fps scrolling

Rule Categories by Priority

Priority Category Impact Prefix
1 Data Flow & State Management CRITICAL state-
2 Visual Design System CRITICAL design-
3 Component Selection HIGH comp-
4 Navigation Patterns HIGH nav-
5 View Composition HIGH view-
6 Animation & Haptics MEDIUM-HIGH anim-
7 Accessibility MEDIUM-HIGH acc-
8 Lists & Scroll Performance MEDIUM perf-
9 Platform Integration MEDIUM platform-

Quick Reference

1. Data Flow & State Management (CRITICAL)

2. Visual Design System (CRITICAL)

3. Component Selection (HIGH)

4. Navigation Patterns (HIGH)

5. View Composition (HIGH)

6. Animation & Haptics (MEDIUM-HIGH)

7. Accessibility (MEDIUM-HIGH)

8. Lists & Scroll Performance (MEDIUM)

9. Platform Integration (MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Full Compiled Document

For a complete compiled guide with all rules in a single document, see AGENTS.md.

Reference Files

File Description
AGENTS.md Complete compiled guide with all rules
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information
Weekly Installs
5
GitHub Stars
71
First Seen
Feb 5, 2026
Installed on
opencode5
gemini-cli5
claude-code5
codex5
antigravity4
windsurf4