I have a SwiftUI form that has a custom collapsable list, which collapses when you select an item. The VoiceOver navigation up to that point works fine for the form, but collapsing the options sends the focus seemingly behind the screen where next/previous focus item seem quite unpredictable.
How can I programatically change to focus of the VoiceOver to a view that I want (the submit button)?
I tried posting a .layoutDidChange
& .screenDidChange
accessibility notifications with my submit button ViewBuilder as an argument, but no success (because value types probably).