ios-ui-refactor

📁 pproenca/dot-skills 📅 2 days ago
1
总安装量
1
周安装量
#51543
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill ios-ui-refactor

Agent 安装分布

amp 1
opencode 1
kimi-cli 1
codex 1
claude-code 1

Skill 文档

Apple HIG SwiftUI iOS 17+ Best Practices

A principal designer’s lens for evaluating and refactoring SwiftUI interfaces to Apple-quality standards. Contains 48 rules across 8 categories, ordered by the visual review process a senior Apple designer follows when auditing an app. Each rule identifies a specific anti-pattern, explains why it degrades the experience, and provides the iOS 17+ fix while respecting the app’s brand voice.

Scope & Relationship to Sibling Skills

This skill is the refactoring and review lens — it evaluates existing UI and identifies visual anti-patterns to fix. When loaded alongside ios-design (building new UI), ios-hig (HIG compliance), or swift-refactor (code-level refactoring), this skill supersedes overlapping rules with more detailed “incorrect → correct” transformations and “When NOT to apply” guidance. Use this skill for auditing and improving existing screens; use the siblings for greenfield implementation.

When to Apply

Reference these guidelines when:

  • Reviewing existing SwiftUI screens for visual quality issues
  • Auditing typography scale, weight usage, and type treatments
  • Evaluating color system coherence across light and dark mode
  • Refactoring animations from legacy easeInOut to spring-based motion
  • Fixing navigation transitions that break spatial continuity
  • Replacing custom overlays with Apple’s materials system
  • Standardizing spacing, touch targets, and corner radii
  • Adopting iOS 17-18 APIs like scrollTransition, PhaseAnimator, or MeshGradient

Rule Categories by Priority

Priority Category Impact Prefix
1 Visual Hierarchy CRITICAL hier-
2 Typography Discipline CRITICAL typo-
3 Color System CRITICAL color-
4 Motion & Animation HIGH motion-
5 Screen Transitions HIGH trans-
6 Materials & Depth HIGH depth-
7 Spacing & Rhythm MEDIUM-HIGH rhythm-
8 iOS 17+ Modernization MEDIUM modern-

Quick Reference

1. Visual Hierarchy (CRITICAL)

2. Typography Discipline (CRITICAL)

3. Color System (CRITICAL)

4. Motion & Animation (HIGH)

5. Screen Transitions (HIGH)

6. Materials & Depth (HIGH)

7. Spacing & Rhythm (MEDIUM-HIGH)

8. iOS 17+ Modernization (MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

File Description
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information