Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIViewController child view controller accessibility

While adding a child view controller, is there a way to hide parent VC elements from the voiceover access?

I've a parent view controller P, which adds a child view controller C as a full screen page view controller. Once the transition to the full screen finishes, the voiceover still goes through the elements in the parent view controller.

Any idea how I can hide/disable accessibility of elements in the parent view controller?

like image 271
Swapnil Patel Avatar asked Apr 30 '26 13:04

Swapnil Patel


1 Answers

You can set accessibilityViewIsModal on the occluding view. Note that the view is made modal relative to sibling views, not globally. If you need to hide views in parallel view hierarchies from the accessibility hierarchy, consider toggling accessibilityElementsHidden.

like image 118
Justin Avatar answered May 05 '26 03:05

Justin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!