Skip to content

chore: add accessibility annotations to Home views#5

Merged
minghinmatthewlam merged 2 commits intomainfrom
chore/accessibility-home
Mar 9, 2026
Merged

chore: add accessibility annotations to Home views#5
minghinmatthewlam merged 2 commits intomainfrom
chore/accessibility-home

Conversation

@minghinmatthewlam
Copy link
Copy Markdown
Owner

Summary

  • Added .accessibilityLabel() and .accessibilityHint() to all interactive elements (buttons, toggles) in the Home feature
  • Added .accessibilityHidden(true) to decorative SF Symbol icons (flame, calendar, chevron, checkmark/xmark)
  • Added .accessibilityElement(children: .combine) with descriptive labels to weekly progress day columns
  • Added .accessibilityAction(named: "Delete") to swipe-to-delete rows for VoiceOver users

Files changed

  • HomeView.swift — Settings button, year progress tile, details button, yesterday focus toggles
  • FocusStatusCardView.swift — Flame icon hidden, share button hint
  • FocusInlineEditRow.swift — Completion checkbox label and hint
  • DayFocusDetailView.swift — Close, previous day, next day buttons
  • WeeklyProgressGridView.swift — Day column combined accessibility with status labels
  • SwipeToDeleteRow.swift — Trash icon hidden, accessible delete action
  • YearProgressPreviewTileView.swift — Calendar and chevron icons hidden

Test plan

  • Xcode build succeeds (iOS Simulator)
  • All 9 unit tests pass
  • Manual VoiceOver walkthrough on device

Add VoiceOver support to all interactive elements in the Home feature:
- Settings gear, year progress tile, details button, yesterday toggles
- Focus completion checkboxes (inline edit + yesterday section)
- Day detail navigation (close, previous day, next day)
- Weekly progress day columns with combined accessibility elements
- Swipe-to-delete accessible action and hidden trash icon
- Decorative icons hidden (flame, calendar, chevron, checkmark/xmark)
- Share button hint on streak card
@minghinmatthewlam minghinmatthewlam merged commit fbaa573 into main Mar 9, 2026
3 of 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