You are correct, I'm trying to read some additional information before reading the UI on the new tab. A concrete example is in System Settings, when you select an item on the left side (General), read the title (General) on the right side before reading the feature list (About).
Using your suggestion, I tried adding the following code to the viewDidLoad, viewWillAppear functions of the sub tab, nothing was read. I added the code to the main tab handler when the sub tab was clicked and nothing happens.
"Text to read first" is a NSTextField
Tried both:
NSAccessibility.post(element: textField as Any, notification: .announcementRequested)
and
NSAccessibility.post(element: textField as Any, notification: .announcementRequested, userInfo: [.priority: NSAccessibilityPriorityLevel.high])
VoiceOver is active and reading the screen but the announcement is never read and the "Feature Name" element is the first thing read when switching to the sub tab.
Am I using the wrong approach?
When should I post the notification?
Is announcementRequested handled by VoiceOver?
Thanks!
Topic:
Accessibility & Inclusion
SubTopic:
General
Tags: