GuideOpen

iOS Platform Guidelines

Human Interface Guidelines (HIG) essentials, iOS design conventions, SF Pro typography, and native patterns. Read this file when building for iPhone/iPad.

iOS Platform Guidelines

Human Interface Guidelines (HIG) essentials, iOS design conventions, SF Pro typography, and native patterns. Read this file when building for iPhone/iPad.

1. Human Interface Guidelines Philosophy

Core Apple Design Principles

CLARITY:
├── Text is legible at every size
├── Icons are precise and lucid
├── Adornments are subtle and appropriate
└── Focus on functionality drives design

DEFERENCE:
├── UI helps people understand and interact
├── Content fills the screen
├── UI never competes with content
└── Translucency hints at more content

DEPTH:
├── Distinct visual layers convey hierarchy
├── Transitions provide sense of depth
├── Touch reveals functionality
└── Content is elevated over UI

iOS Design Values

ValueImplementation
Aesthetic IntegrityDesign matches function (game ≠ productivity)
ConsistencyUse system controls, familiar patterns
Direct ManipulationTouch directly affects content
FeedbackActions are acknowledged
MetaphorsReal-world comparisons aid understanding
User ControlUser initiates actions, can cancel

2. iOS Typography

SF Pro Font Family

iOS System Fonts:
├── SF Pro Text: Body text (< 20pt)
├── SF Pro Display: Large titles (≥ 20pt)
├── SF Pro Rounded: Friendly contexts
├── SF Mono: Code, tabular data
└── SF Compact: Apple Watch, smaller screens

iOS Type Scale (Dynamic Type)

StyleDefault SizeWeightUsage
Large Title34ptBoldNavigation bar (scroll collapse)
Title 128ptBoldPage titles
Title 222ptBoldSection headers
Title 320ptSemiboldSubsection headers
Headline17ptSemiboldEmphasized body
Body17ptRegularPrimary content
Callout16ptRegularSecondary content
Subhead15ptRegularTertiary content
Footnote13ptRegularCaption, timestamps
Caption 112ptRegularAnnotations
Caption 211ptRegularFine print

Dynamic Type Support (MANDATORY)

// ❌ WRONG: Fixed font size
Text("Hello")
    .font(.system(size: 17))

// ✅ CORRECT: Dynamic Type
Text("Hello")
    .font(.body) // Scales with user settings

// React Native equivalent
<Text style={{ fontSize: 17 }}> // ❌ Fixed
<Text style={styles.body}> // Use a dynamic scale system

Font Weight Usage

WeightiOS ConstantUse Case
Regular (400).regularBody text
Medium (500).mediumButtons, emphasis
Semibold (600).semiboldSubheadings
Bold (700).boldTitles, key info
Heavy (800).heavyRarely, marketing

3. iOS Color System

System Colors (Semantic)

Use semantic colors for automatic dark mode:

Primary:
├── .label → Primary text
├── .secondaryLabel → Secondary text
├── .tertiaryLabel → Tertiary text
├── .quaternaryLabel → Watermarks

Backgrounds:
├── .systemBackground → Main background
├── .secondarySystemBackground → Grouped content
├── .tertiarySystemBackground → Elevated content

Fills:
├── .systemFill → Large shapes
├── .secondarySystemFill → Medium shapes
├── .tertiarySystemFill → Small shapes
├── .quaternarySystemFill → Subtle shapes

System Accent Colors

ColorLight ModeDark ModeUsage
Blue#007AFF#0A84FFLinks, highlights, default tint
Green#34C759#30D158Success, positive
Red#FF3B30#FF453AErrors, destructive
Orange#FF9500#FF9F0AWarnings
Yellow#FFCC00#FFD60AAttention
Purple#AF52DE#BF5AF2Special features
Pink#FF2D55#FF375FAffection, favorites
Teal#5AC8FA#64D2FFInformation

Dark Mode Considerations

iOS Dark Mode is not inverted light mode:

LIGHT MODE:              DARK MODE:
├── White backgrounds    ├── True black (#000) or near-black
├── High saturation      ├── Desaturated colors
├── Black text           ├── White/light gray text
└── Drop shadows         └── Glows or no shadows

RULE: Always use semantic colors for automatic adaptation.

4. iOS Layout & Spacing

Safe Areas

┌─────────────────────────────────────┐
│░░░░░░░░░░░ Status Bar ░░░░░░░░░░░░░│ ← Top safe area inset
├─────────────────────────────────────┤
│                                     │
│                                     │
│         Safe Content Area           │
│                                     │
│                                     │
├─────────────────────────────────────┤
│░░░░░░░░░ Home Indicator ░░░░░░░░░░░│ ← Bottom safe area inset
└─────────────────────────────────────┘

RULE: Never place interactive content in unsafe areas.

Standard Margins & Padding

ElementMarginNotes
Screen edge → content16ptStandard horizontal margin
Grouped table sections16pt top/bottomBreathing room
List item padding16pt horizontalStandard cell padding
Card internal padding16ptContent within cards
Button internal padding12pt vertical, 16pt horizontalMinimum

iOS Grid System

iPhone Grid (Standard):
├── 16pt margins (left/right)
├── 8pt minimum spacing
├── Content in 8pt multiples

iPhone Grid (Compact):
├── 8pt margins (when needed)
├── 4pt minimum spacing

iPad Grid:
├── 20pt margins (or more)
├── Consider multi-column layouts

5. iOS Navigation Patterns

Navigation Types

PatternUse CaseImplementation
Tab Bar3-5 top-level sectionsBottom, always visible
Navigation ControllerHierarchical drill-downStack-based, back button
ModalFocused task, interruptionSheet or full-screen
SidebariPad, multi-columnLeft sidebar (iPad)

Tab Bar Guidelines

┌─────────────────────────────────────┐
│                                     │
│         Content Area                │
│                                     │
├─────────────────────────────────────┤
│  🏠     🔍     ➕     ❤️     👤    │ ← Tab bar (49pt height)
│ Home   Search  New   Saved  Profile │
└─────────────────────────────────────┘

Rules:
├── 3-5 items maximum
├── Icons: SF Symbols or custom (25×25pt)
├── Labels: Always include (accessibility)
├── Active state: Filled icon + tint color
└── Tab bar always visible (don't hide on scroll)

Navigation Bar Guidelines

┌─────────────────────────────────────┐
│ < Back     Page Title      Edit    │ ← Navigation bar (44pt)
├─────────────────────────────────────┤
│                                     │
│         Content Area                │
│                                     │
└─────────────────────────────────────┘

Rules:
├── Back button: System chevron + previous title (or "Back")
├── Title: Centered, dynamic font
├── Right actions: Max 2 items
├── Large title: Collapses on scroll (optional)
└── Prefer text buttons over icons (clarity)

Modal Presentations

StyleUse CaseAppearance
Sheet (default)Secondary tasksCard slides up, parent visible
Full ScreenImmersive tasksCovers entire screen
PopoveriPad, quick infoArrow-pointed bubble
AlertCritical interruptionCentered dialog
Action SheetChoices from contextBottom sheet with options

Gestures

GestureiOS Convention
Edge swipe (left)Navigate back
Pull down (sheet)Dismiss modal
Long pressContext menu
Deep pressPeek/Pop (legacy)
Two-finger swipeScroll in nested scroll

6. iOS Components

Buttons

Button Styles (UIKit/SwiftUI):

┌──────────────────────────────┐
│         Tinted               │ ← Primary action (filled)
├──────────────────────────────┤
│         Bordered             │ ← Secondary action (outline)
├──────────────────────────────┤
│         Plain                │ ← Tertiary action (text only)
└──────────────────────────────┘

Sizes:
├── Mini: Tight spaces
├── Small: Compact UI
├── Medium: Inline actions
├── Large: Primary CTAs (44pt minimum height)

Lists & Tables

List Styles:

.plain         → No separators, edge-to-edge
.insetGrouped  → Rounded cards (default iOS 14+)
.grouped       → Full-width sections
.sidebar       → iPad sidebar navigation

Cell Accessories:
├── Disclosure indicator (>) → Navigates to detail
├── Detail button (i) → Shows info without navigation
├── Checkmark (✓) → Selection
├── Reorder (≡) → Drag to reorder
└── Delete (-) → Swipe/edit mode delete

Text Fields

iOS Text Field Anatomy:

┌─────────────────────────────────────┐
│ 🔍 Search...                    ✕  │
└─────────────────────────────────────┘
  ↑                               ↑
  Leading icon                   Clear button

Borders: Rounded rectangle
Height: 36pt minimum
Placeholder: Secondary text color
Clear button: Appears when has text

Segmented Controls

When to Use:
├── 2-5 related options
├── Filter content
├── Switch views

┌───────┬───────┬───────┐
│  All  │ Active│ Done  │
└───────┴───────┴───────┘

Rules:
├── Equal width segments
├── Text or icons (not both mixed)
├── Max 5 segments
└── Consider tabs if more complex

7. iOS Specific Patterns

Pull to Refresh

Native UIRefreshControl behavior:
├── Pull beyond threshold → Spinner appears
├── Release → Refresh action triggered
├── Loading state → Spinner spins
├── Complete → Spinner disappears

RULE: Always use native UIRefreshControl (don't custom build).

Swipe Actions

iOS swipe actions:

← Swipe Left (Destructive)      Swipe Right (Constructive) →
┌─────────────────────────────────────────────────────────────┐
│                    List Item Content                        │
└─────────────────────────────────────────────────────────────┘

Left swipe reveals: Archive, Delete, Flag
Right swipe reveals: Pin, Star, Mark as Read

Full swipe: Triggers first action

Context Menus

Long press → Context menu appears

┌─────────────────────────────┐
│       Preview Card          │
├─────────────────────────────┤
│  📋 Copy                    │
│  📤 Share                   │
│  ➕ Add to...               │
├─────────────────────────────┤
│  🗑️ Delete          (Red)   │
└─────────────────────────────┘

Rules:
├── Preview: Show enlarged content
├── Actions: Related to content
├── Destructive: Last, in red
└── Max ~8 actions (scrollable if more)

Sheets & Half-Sheets

iOS 15+ Sheets:

┌─────────────────────────────────────┐
│                                     │
│        Parent View (dimmed)          │
│                                     │
├─────────────────────────────────────┤
│  ═══  (Grabber)                     │ ← Drag to resize
│                                     │
│        Sheet Content                │
│                                     │
│                                     │
└─────────────────────────────────────┘

Detents:
├── .medium → Half screen
├── .large → Full screen (with safe area)
├── Custom → Specific height

8. SF Symbols

Usage Guidelines

SF Symbols: Apple's icon library (5000+ icons)

Weights: Match text weight
├── Ultralight / Thin / Light
├── Regular / Medium / Semibold
├── Bold / Heavy / Black

Scales:
├── .small → Inline with small text
├── .medium → Standard UI
├── .large → Emphasis, standalone

Symbol Configurations

// SwiftUI
Image(systemName: "star.fill")
    .font(.title2)
    .foregroundStyle(.yellow)

// With rendering mode
Image(systemName: "heart.fill")
    .symbolRenderingMode(.multicolor)

// Animated (iOS 17+)
Image(systemName: "checkmark.circle")
    .symbolEffect(.bounce)

Symbol Best Practices

GuidelineImplementation
Match text weightSymbol weight = font weight
Use standard symbolsUsers recognize them
Multicolor when meaningfulNot just decoration
Fallback for older iOSCheck availability

9. iOS Accessibility

VoiceOver Requirements

Every interactive element needs:
├── Accessibility label (what it is)
├── Accessibility hint (what it does) - optional
├── Accessibility traits (button, link, etc.)
└── Accessibility value (current state)

SwiftUI:
.accessibilityLabel("Play")
.accessibilityHint("Plays the selected track")

React Native:
accessibilityLabel="Play"
accessibilityHint="Plays the selected track"
accessibilityRole="button"

Dynamic Type Scaling

MANDATORY: Support Dynamic Type

Users can set text size from:
├── xSmall → 14pt body
├── Small → 15pt body
├── Medium → 16pt body
├── Large (Default) → 17pt body
├── xLarge → 19pt body
├── xxLarge → 21pt body
├── xxxLarge → 23pt body
├── Accessibility sizes → up to 53pt

Your app MUST scale gracefully at all sizes.

Reduce Motion

Respect motion preferences:

@Environment(\.accessibilityReduceMotion) var reduceMotion

if reduceMotion {
    // Use instant transitions
} else {
    // Use animations
}

React Native:
import { AccessibilityInfo } from 'react-native';
AccessibilityInfo.isReduceMotionEnabled()

10. iOS Checklist

Before Every iOS Screen

  • [ ] Using SF Pro or SF Symbols
  • [ ] Dynamic Type supported
  • [ ] Safe areas respected
  • [ ] Navigation follows HIG (back gesture works)
  • [ ] Tab bar items ≤ 5
  • [ ] Touch targets ≥ 44pt

Before iOS Release

  • [ ] Dark mode tested
  • [ ] All text sizes tested (Accessibility Inspector)
  • [ ] VoiceOver tested
  • [ ] Edge swipe back works everywhere
  • [ ] Keyboard avoidance implemented
  • [ ] Notch/Dynamic Island handled
  • [ ] Home indicator area respected
  • [ ] Native components used where possible

Remember: iOS users have strong expectations from other iOS apps. Deviating from HIG patterns feels "broken" to them. When in doubt, use the native component.

Source: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/creative-design/mobile-design/platform-ios.md

Author: davila7, Claude Code templates (davila7). License: MIT.

Shown here with formatting for the web. Keep the author and license notice when you reuse it.

Related entries

There are more like this in the members library

The Claude Code library holds 13,843 entries. Members can search all of them by meaning and read every one in full.