5

When I programmatically move voiceover focus to a label, the hint of the label is not read out. How can I fix that? Only the accessibility label is read out.

UIAccessibilityPostNotification(UIAccessibilityLayoutChangedNotification, self.label)

matchifang
  • 5,190
  • 12
  • 47
  • 76

1 Answers1

4

Use UIAccessibilityScreenChangedNotification if you want to hear the hint of the new focused element.

The difference with your initial notification is well detailed but it doesn't explain why there's such a different behavior.

Anyway, your accessibility hint is now read out by VoiceOver when you change the focus programmatically.

XLE_22
  • 5,124
  • 3
  • 21
  • 72