From 0d10cccf54aff7e2c2561f6ceb07108d05fe76ac Mon Sep 17 00:00:00 2001 From: Matthew Lam Date: Sun, 8 Mar 2026 19:13:33 -0400 Subject: [PATCH] chore: add accessibility annotations to sharing card views Mark the decorative flame icon as accessibilityHidden and combine child elements on both share card outer containers for VoiceOver. --- App/Features/Sharing/StreakShareCardView.swift | 2 ++ App/Features/Sharing/YearProgressShareCardView.swift | 1 + 2 files changed, 3 insertions(+) diff --git a/App/Features/Sharing/StreakShareCardView.swift b/App/Features/Sharing/StreakShareCardView.swift index 9e68da1..66579df 100644 --- a/App/Features/Sharing/StreakShareCardView.swift +++ b/App/Features/Sharing/StreakShareCardView.swift @@ -26,6 +26,7 @@ struct StreakShareCardView: View { Image(systemName: "flame.fill") .font(.tenxIconLarge) .foregroundStyle(streak > 0 ? Color.orange : AppColors.textMuted) + .accessibilityHidden(true) } Text("1-3 focuses a day. Complete two to keep it alive.") @@ -37,5 +38,6 @@ struct StreakShareCardView: View { } .frame(width: 1200, height: 1200) .clipShape(RoundedRectangle(cornerRadius: 80, style: .continuous)) + .accessibilityElement(children: .combine) } } diff --git a/App/Features/Sharing/YearProgressShareCardView.swift b/App/Features/Sharing/YearProgressShareCardView.swift index 9ee58f8..9c768c9 100644 --- a/App/Features/Sharing/YearProgressShareCardView.swift +++ b/App/Features/Sharing/YearProgressShareCardView.swift @@ -41,6 +41,7 @@ struct YearProgressShareCardView: View { } .frame(width: 1200, height: 1200) .clipShape(RoundedRectangle(cornerRadius: 80, style: .continuous)) + .accessibilityElement(children: .combine) } private func metricBlock(title: String, value: String) -> some View {