matchifang
matchifang

Reputation: 5450

Accessibility Hint is not read out when changing focus

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)

Upvotes: 5

Views: 1158

Answers (1)

XLE_22
XLE_22

Reputation: 5671

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.

Upvotes: 4

Related Questions