Post

Replies

Boosts

Views

Activity

Reply to Swift Charts Accessibility Bug
Can you try omitting this line from your chart? BarMark(x: .value("Month", x, unit: .month), y: .value("Revenue", y.revenue)) That should result in a chart that only shows the green income bars. In that case, applying the accessibilityLabel and accessibilityValue modifiers to each BarMark should produce the custom VoiceOver output you specify.
Mar ’25
Reply to Swift UI Chart Accessibility issue
Are you creating a stacked bar chart by any chance? I have run into the same problem, where VoiceOver seems to ignore the accessibilityLabel and accessibilityValue modifiers we apply to each BarMark. However, this only happens with a stacked bar chart. With a standard bar chart, the modifiers work exactly as expected.
Mar ’25