Search code examples
iosaccessibility-inspector

Mark accessibility elements as "ignored" by Accesibility Inspector


I am testing my iOS application in terms of accessibility and I am trying to reduce as many warnings as possible. Some elements, like images, I want to omit from the Voice Over, so I mark them as not accessible. However, in the Accessibility Inspector, I get the warning

"Potentially inaccessible text" - even though it is an image marked as not accessible.

Is there a way to mark some elements as "ignored" for the Accessibility Inspector such that they are not reported anymore?

Accessibility Inspector printscreen: Accessibility Inspector printscreen


Solution

  • It is not an answer itself, but maybe you could do something similar. I had the same issue. Setting the isAccessibilityElement to false should've done the trick but it seems to be a bug. In my case what solved the issue was to make the container of the image an accessibility element and the warning disappeared. Doing this the inner items are going to be ignored and I think the accessibility inspector is not going to take that into account. But the isAccessibilityElement should do the same but for some reason it isn't. ;)