Skip to content

chore: add accessibility annotations to sharing card views#2

Merged
minghinmatthewlam merged 1 commit intomainfrom
chore/accessibility-sharing
Mar 9, 2026
Merged

chore: add accessibility annotations to sharing card views#2
minghinmatthewlam merged 1 commit intomainfrom
chore/accessibility-sharing

Conversation

@minghinmatthewlam
Copy link
Copy Markdown
Owner

Summary

  • Mark the decorative flame icon in StreakShareCardView as .accessibilityHidden(true)
  • Add .accessibilityElement(children: .combine) to outer containers in both StreakShareCardView and YearProgressShareCardView so VoiceOver combines all child text into a single element
  • ShareItem.swift reviewed — model-only file, no changes needed

Note: These views are rendered to UIImage via ImageRenderer for sharing and are never directly in the interactive UI hierarchy. Annotations added for completeness and best practice.

Test plan

  • Xcode build succeeds with no errors

Mark the decorative flame icon as accessibilityHidden and combine
child elements on both share card outer containers for VoiceOver.
@minghinmatthewlam minghinmatthewlam merged commit bf29a10 into main Mar 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant