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?

Accepted Reply

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

Replies

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