VoiceOver focus is set to the first available element

I've been trying to get VoiceOver to announce the role of the new VC when the user moves to another screen.

For some reason:

UIAccessibility.post(notification: .announcement, argument: "text")

doesn't have time to finish its work and the focus is set to the first accessibility item. Is there any way to avoid this behaviour or to disable automatic setting of focus?

Answered by AnjeyNov in 713235022

I should have used UIAccessibility.post(notification: .screenChanged, argument: "text")

Accepted Answer

I should have used UIAccessibility.post(notification: .screenChanged, argument: "text")

VoiceOver focus is set to the first available element
 
 
Q