feat: add WCAG AA accessibility app-wide, fix CloudKit container config, remove debug logs
- Add VoiceOver labels, hints, and element grouping across all 60+ views - Add Reduce Motion support (Theme.Animation.prefersReducedMotion) to all animations - Replace fixed font sizes with semantic Dynamic Type styles - Hide decorative elements from VoiceOver with .accessibilityHidden(true) - Add .minimumHitTarget() modifier ensuring 44pt touch targets - Add AccessibilityAnnouncer utility for VoiceOver announcements - Improve color contrast values in Theme.swift for WCAG AA compliance - Extract CloudKitContainerConfig for explicit container identity - Remove PostHog debug console log from AnalyticsManager Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -68,7 +68,9 @@ struct AnimatedRouteGraphic: View {
|
||||
)
|
||||
}
|
||||
}
|
||||
.accessibilityHidden(true)
|
||||
.onAppear {
|
||||
guard !Theme.Animation.prefersReducedMotion else { return }
|
||||
withAnimation(.easeInOut(duration: Theme.Animation.routeDrawDuration).repeatForever(autoreverses: false)) {
|
||||
animationProgress = 1
|
||||
}
|
||||
@@ -126,7 +128,9 @@ struct PulsingDot: View {
|
||||
.frame(width: size, height: size)
|
||||
.shadow(color: color.opacity(0.5), radius: 4)
|
||||
}
|
||||
.accessibilityHidden(true)
|
||||
.onAppear {
|
||||
guard !Theme.Animation.prefersReducedMotion else { return }
|
||||
withAnimation(.easeOut(duration: 1.5).repeatForever(autoreverses: false)) {
|
||||
isPulsing = true
|
||||
}
|
||||
@@ -171,6 +175,7 @@ struct RoutePreviewStrip: View {
|
||||
}
|
||||
.padding(.horizontal, Theme.Spacing.md)
|
||||
}
|
||||
.accessibilityHidden(true)
|
||||
}
|
||||
|
||||
private func abbreviateCity(_ city: String) -> String {
|
||||
@@ -196,6 +201,7 @@ struct StatPill: View {
|
||||
Text(value)
|
||||
.font(.footnote)
|
||||
}
|
||||
.accessibilityElement(children: .combine)
|
||||
.foregroundStyle(Theme.textSecondary(colorScheme))
|
||||
.padding(.horizontal, 12)
|
||||
.padding(.vertical, 6)
|
||||
@@ -219,6 +225,7 @@ struct EmptyStateView: View {
|
||||
Image(systemName: icon)
|
||||
.font(.largeTitle)
|
||||
.foregroundStyle(Theme.warmOrange.opacity(0.7))
|
||||
.accessibilityHidden(true)
|
||||
|
||||
VStack(spacing: 8) {
|
||||
Text(title)
|
||||
|
||||
Reference in New Issue
Block a user