Hi,
I've wrapped AVRoutePickerView in SwiftUI using pretty much the code given here, with a few changes:
func makeUIView(context: Context) -> UIView {
let routePickerView = AVRoutePickerView()
// Configure the button's color.
//routePickerView.delegate = context.coordinator
//routePickerView.backgroundColor = .secondarySystemBackground
routePickerView.tintColor = .accent
routePickerView.activeTintColor = .accent
// Indicate whether your app prefers video content.
routePickerView.prioritizesVideoDevices = false
return routePickerView
}
I commented out routePickerView.delegate = context.coordinator
because it doesn't compile; context.coordinator
is of type Void and I'm not sure how to fix that. I'm not sure if that has anything to do with the issue.
Anyway, this works fine without VoiceOver; if I tap the button, I get the AirPlay popover. But in VoiceOver, if I select the button and double-tap, nothing happens… it just reads the button's accessibilityLabel
again. How can I get the AirPlay popover to show in VoiceOver?
Thanks for mentioning this issue. Could you please file a bug report using the Feedback Assistant tool? https://developer.apple.com/bug-reporting/
If you could reproduce the issue in a screen recording then follow the instructions in the Feedback Assistant tool to gather device diagnostics / logs, it will help us understand this issue much better.
Including code samples like the one above or any additional code samples that you feel might be relevant will also help!
You can post the Feedback ID number here once you filed it and I'll make sure it gets some attention. Thanks!