Add TimelineAccessibilityModifier

This commit is contained in:
Alfonso Grillo
2023-11-06 13:06:08 +01:00
committed by Alfonso Grillo
parent 6ad7dc7641
commit f7f3404312
4 changed files with 54 additions and 9 deletions
@@ -100,11 +100,14 @@ struct TimelineItemBubbledStylerView<Content: View>: View {
VStack(alignment: alignment, spacing: -3) {
messageBubble
.accessibilityRepresentation {
VStack {
VStack(spacing: 0) {
Text(timelineItem.sender.displayName ?? timelineItem.sender.id)
// Workaround: fixes VoiceOver frames offset when children accessibility element aren't combined
.frame(height: 0)
messageBubble
}
}
.timelineAccessibility(timelineItem)
if !timelineItem.properties.reactions.isEmpty {
TimelineReactionsView(itemID: timelineItem.id,