I’ve noticed that a UIScrollView doesn’t have mentioned accessibility area where I can set accessibility label or accessibility. This seems to apply for activity indicators too.
Why does UIVIews, UIButtons and more have this area and not UIScrollView and UIActivityIndicatorView?
Good question – the reason for a scroll view is that Apple don’t consider it to be an accessible element.
If you look at the
UIAccessibilitydocumentation, you’ll find Apple have the following to say on what counts as an ‘accessible element’:A
UIScrollViewis simply a container for subviews, so itsisAccessibilityElementproperty is set to no (hence why you don’t see the accessibility options in interface builder).So basically, when you’re using a scroll view the items inside it should be accessible, but not the scroll view itself.