askill
ios-ui-refactor

ios-ui-refactorSafety --Repository

Principal-level iOS UI review and refactoring patterns for SwiftUI. Evaluates visual hierarchy, typography, color systems, motion, transitions, materials, spacing, and iOS 17+ modernization. This skill should be used when reviewing, auditing, or refactoring existing SwiftUI views, screens, transitions, animations, or color usage to reach Apple-quality design standards while preserving the app's brand identity.

60 stars
1.2k downloads
Updated 2/19/2026

Package Files

Loading files...
SKILL.md

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

PriorityCategoryImpactPrefix
1Visual HierarchyCRITICALhier-
2Typography DisciplineCRITICALtypo-
3Color SystemCRITICALcolor-
4Motion & AnimationHIGHmotion-
5Screen TransitionsHIGHtrans-
6Materials & DepthHIGHdepth-
7Spacing & RhythmMEDIUM-HIGHrhythm-
8iOS 17+ ModernizationMEDIUMmodern-

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

FileDescription
references/_sections.mdCategory definitions and ordering
assets/templates/_template.mdTemplate for new rules
metadata.jsonVersion and reference information

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

AI review pending.

Metadata

Licenseunknown
Version-
Updated2/19/2026
Publisherpproenca

Tags

No tags yet.