iOS 26.2 VoiceOver focus issue with SwiftUI Menu Picker
is there some sort of new pattern regarding voice over focus in iOS 26.2?
right now in our code we have this swiftui sheet that displays some filters for a swiftui list. one of the filters Is a Menu picker, and the expectation is that when a button launches a popup, when the popup is dismissed, the focus needs to return to the button on voice over.
Menu {
Picker($selectedItem)
}
.accessibilityFocused($isFocused)
.onChange(of: selectedItem) { _, _ in
Task { @MainActor in
try? await Task.sleep(for: .seconds(0.8))
isFocused = true
}
}
this is working fine up until 26.1, where it breaks in 26.2, now after selected item is updated and picker is dismissed, the focus goes to cancel button on the sheet for some reason, and not to the the thing im setting accessibilityFocused.
iPhone 15 Pro, iOS 26