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:
@@ -81,6 +81,7 @@ struct SharePreviewView<Content: ShareableContent>: View {
|
||||
.frame(maxHeight: 400)
|
||||
.clipShape(RoundedRectangle(cornerRadius: Theme.CornerRadius.medium))
|
||||
.shadow(color: .black.opacity(0.2), radius: 10, x: 0, y: 5)
|
||||
.accessibilityLabel("Share card preview")
|
||||
} else if isGenerating {
|
||||
RoundedRectangle(cornerRadius: Theme.CornerRadius.medium)
|
||||
.fill(Theme.cardBackground(colorScheme))
|
||||
@@ -147,6 +148,9 @@ struct SharePreviewView<Content: ShareableContent>: View {
|
||||
}
|
||||
}
|
||||
.buttonStyle(.plain)
|
||||
.accessibilityLabel("Select \(theme.name) theme")
|
||||
.accessibilityHint(selectedTheme.id == theme.id ? "Currently selected" : "Double-tap to select this theme")
|
||||
.accessibilityAddTraits(selectedTheme.id == theme.id ? .isSelected : [])
|
||||
}
|
||||
|
||||
// MARK: - Action Buttons
|
||||
@@ -159,6 +163,7 @@ struct SharePreviewView<Content: ShareableContent>: View {
|
||||
} label: {
|
||||
HStack {
|
||||
Image(systemName: "camera.fill")
|
||||
.accessibilityHidden(true)
|
||||
Text("Share to Instagram")
|
||||
}
|
||||
.frame(maxWidth: .infinity)
|
||||
@@ -175,6 +180,7 @@ struct SharePreviewView<Content: ShareableContent>: View {
|
||||
} label: {
|
||||
HStack {
|
||||
Image(systemName: "doc.on.doc")
|
||||
.accessibilityHidden(true)
|
||||
Text("Copy to Clipboard")
|
||||
}
|
||||
.frame(maxWidth: .infinity)
|
||||
@@ -195,6 +201,7 @@ struct SharePreviewView<Content: ShareableContent>: View {
|
||||
|
||||
HStack {
|
||||
Image(systemName: "checkmark.circle.fill")
|
||||
.accessibilityHidden(true)
|
||||
Text("Copied to clipboard")
|
||||
}
|
||||
.padding()
|
||||
|
||||
Reference in New Issue
Block a user