ios-hig-design

安装量: 323
排名: #2864

安装

npx skills add https://github.com/wondelai/skills --skill ios-hig-design

This skill guides creation of native iOS app interfaces that feel intuitive, consistent, and aligned with Apple's design philosophy.

Core Design Principles

Apple's iOS design philosophy rests on three foundational principles:

1. Clarity

Every element must be legible and purposeful. Typography, iconography, and spacing communicate hierarchy and focus.

2. Deference

The interface should never overshadow the content. The UI exists to support user tasks, not distract from them.

3. Depth

Layering, transitions, and realistic motion provide hierarchy and spatial relationships.

Screen Sizes & Layout

iPhone Screen Sizes (Design Points)

| iPhone 15 Pro Max, 14 Pro Max | 430 × 932 | @3x

| iPhone 15 Pro, 15, 14 Pro | 393 × 852 | @3x

| iPhone 14, 13, 12 | 390 × 844 | @3x

| iPhone SE (2nd/3rd gen) | 375 × 667 | @2x

Best Practice: Design for smaller screens first (375pt width).

Page Layout Structure

┌─────────────────────────────────┐
│         Status Bar (59pt)       │
├─────────────────────────────────┤
│         Nav Bar Row 1 (44pt)    │
├─────────────────────────────────┤
│         Nav Bar Row 2 (58pt)    │  ← Large title (optional)
├─────────────────────────────────┤
│         Content Area            │
├─────────────────────────────────┤
│         Tab Bar (49pt)          │
├─────────────────────────────────┤
│       Home Indicator (34pt)     │
└─────────────────────────────────┘

Safe Areas

Critical: UI components must not overlap with hardware features (notch, Dynamic Island, home indicator).

VStack { Text("Content") }  // Default: respects safe area

VStack { Color.blue }.ignoresSafeArea()  // Extend beyond

Quick Reference: Component Spacing

Touch Target Min:     44 × 44pt
Screen Edge Margin:   16-20pt
List Row Height:      44pt minimum
Standard Spacing:     8 / 16 / 24pt

Common Pitfalls

Don't:

  • Override standard gestures (swipe back, pull refresh)

  • Use touch targets smaller than 44pt

  • Ignore safe areas

  • Force Android patterns (top tab bar, hamburger menus)

  • Neglect Dark Mode

  • Use low contrast text

Do:

  • Use native components

  • Test on real devices

  • Support Dynamic Type

  • Test with VoiceOver enabled

  • Preview in both light and dark modes

Detailed Reference Files

Core Design:

Input & System Integration:

Resources

返回排行榜