teqo-backup/.agents/skills/ios-hig-design/references/accessibility.md
Francisco Ignácio Fontoura Solla b75daab498 Refactor campaign dashboard UX and add product discovery artifacts.
Extract dashboard cards into focused components (queues, upcoming plans, leadership status, recently visited, choropleth legend), compile the roadmap for outcome-oriented tracking, document the customer job and improve-app journey, and tighten roadmap skills with decision-quality gates.
2026-07-19 21:56:01 -03:00

1.3 KiB
Raw Blame History

iOS Accessibility

VoiceOver Support

Every interactive element needs accessibility labels:

// Accessible label (what it is)
Image(systemName: "heart.fill")
    .accessibilityLabel("Favorite")

// Accessible value (current state)
Slider(value: $volume)
    .accessibilityLabel("Volume")
    .accessibilityValue("\(Int(volume * 100))%")

// Accessible hint (what it does)
Button("Share") { share() }
    .accessibilityHint("Shares this item with others")

// Group related elements
HStack {
    Image(systemName: "person")
    Text("John Doe")
}
.accessibilityElement(children: .combine)

Dynamic Type

Support user font size preferences:

// Use semantic text styles (automatically scales)
Text("Content")
    .font(.body)

// For custom fonts, scale with Dynamic Type
@ScaledMetric var customSize: CGFloat = 16

Text("Custom")
    .font(.system(size: customSize))

High Contrast Mode

@Environment(\.colorSchemeContrast) var contrast

var textColor: Color {
    contrast == .increased ? .primary : .secondary
}

Accessibility Checklist

  • All images have accessibility labels
  • Touch targets are minimum 44×44pt
  • Text scales with Dynamic Type
  • Color contrast meets WCAG standards
  • Motion can be reduced
  • VoiceOver navigation is logical
  • Don't rely solely on color to convey meaning