ios-accessibility-validator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAccessibility Validator
无障碍验证器
Checklist
检查清单
VoiceOver
VoiceOver
- Interactive elements have
.accessibilityLabel() - Decorative elements:
.accessibilityHidden(true) - Related elements:
.accessibilityElement(children: .combine) - Labels are localized
- 交互元素包含
.accessibilityLabel() - 装饰性元素设置
.accessibilityHidden(true) - 关联元素使用
.accessibilityElement(children: .combine) - 标签已本地化
Dynamic Type
动态字体(Dynamic Type)
- Use not
.font(.body).system(size:) - Use for spacing
@ScaledMetric - Layout adapts to large text
- 使用 而非
.font(.body).system(size:) - 使用 处理间距
@ScaledMetric - 布局适配大字号文本
Color Contrast
颜色对比度
- Text: 4.5:1 (normal), 3:1 (large)
- Use semantic colors (,
.primary).secondary - Color not sole indicator
- 文本:普通文本对比度4.5:1,大文本3:1
- 使用语义化颜色(,
.primary).secondary - 不单独依赖颜色作为提示
Touch Targets
触摸目标
- Minimum 44x44pt
- 最小尺寸44x44pt
Quick Fixes
快速修复方案
| Issue | Fix |
|---|---|
| No label | |
| Decorative | |
| Group | |
| Small target | |
| Fixed font | Use |
| 问题 | 修复方法 |
|---|---|
| 无标签 | 添加 |
| 装饰性元素 | 设置 |
| 关联元素分组 | 使用 |
| 目标尺寸过小 | 设置 |
| 固定字体 | 使用 |
Severity
严重程度
- 🔴 Critical: Blocks accessibility
- 🟡 Moderate: Reduces usability
- 🟢 Minor: Enhancement
- 🔴 严重:阻碍无障碍访问
- 🟡 中等:降低可用性
- 🟢 轻微:优化建议