mirror of
https://github.com/fsolla/teqo.git
synced 2026-12-05 17:03:05 +00:00
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.
63 lines
1.3 KiB
Markdown
63 lines
1.3 KiB
Markdown
# iOS Accessibility
|
||
|
||
## VoiceOver Support
|
||
|
||
Every interactive element needs accessibility labels:
|
||
|
||
```swift
|
||
// 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:
|
||
|
||
```swift
|
||
// 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
|
||
|
||
```swift
|
||
@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
|