mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Add TimelineAccessibilityModifier
This commit is contained in:
committed by
Alfonso Grillo
parent
6ad7dc7641
commit
f7f3404312
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user