apple-build-native-uis

📁 pproenca/dot-skills 📅 8 days ago
4
总安装量
4
周安装量
#49154
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill apple-build-native-uis

Agent 安装分布

opencode 4
gemini-cli 4
claude-code 4
codex 4
antigravity 3
windsurf 3

Skill 文档

Apple Build Native UIs Best Practices

Comprehensive SwiftUI interface development guide, extracted from Apple’s official Develop in Swift Tutorials and SwiftUI Concepts. Contains 49 rules across 10 categories, prioritized by impact to guide view composition, layout, styling, state management, and accessibility.

When to Apply

Reference these guidelines when:

  • Building new SwiftUI views and screens
  • Composing views with stacks, grids, and custom layouts
  • Managing state with @State, @Binding, @Observable, and @Environment
  • Implementing navigation with NavigationStack, TabView, and sheets
  • Adding accessibility, Dynamic Type, and inclusive features

Rule Categories by Priority

Priority Category Impact Prefix
1 View Composition CRITICAL comp-
2 Layout & Sizing CRITICAL layout-
3 Styling & Theming HIGH style-
4 State & Data Flow HIGH state-
5 Navigation & Presentation HIGH nav-
6 Lists & Dynamic Content MEDIUM-HIGH list-
7 User Input & Interaction MEDIUM-HIGH input-
8 Accessibility & Adaptivity MEDIUM access-
9 Testing & Debugging MEDIUM test-
10 App Polish & Refinement LOW polish-

Quick Reference

1. View Composition (CRITICAL)

2. Layout & Sizing (CRITICAL)

3. Styling & Theming (HIGH)

4. State & Data Flow (HIGH)

5. Navigation & Presentation (HIGH)

6. Lists & Dynamic Content (MEDIUM-HIGH)

7. User Input & Interaction (MEDIUM-HIGH)

8. Accessibility & Adaptivity (MEDIUM)

9. Testing & Debugging (MEDIUM)

10. App Polish & Refinement (LOW)

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