How can you set the accessibility of subviews of UITableViewCells individually.
It should not be accessible as complete cell?
I tried every solution proposed here, but none of those solved my issue.
I was able to hide my cell from accessibility and highlight only the elements from my UITableViewCell
by setting the cell's contentView.accessibilityElementsHidden
to true and also setting my UI items isAccessibilityElement
to true.
contentView.accessibilityElementsHidden = true
UIElement.isAccessibilityElement = true