I\'ve got a subclass of UIView, let\'s say it\'s class DemoView: UIView { }
which contains UILabel and UIButton. I needed to group it and add UIAccessibilityCus
I talked to Apple Engineers during WWDC19 Accessibility and Testing Labs and they said it is not possible right now. The reason why accessibility is not available during testing are security concerns. What they also said is that they don't use UITests for testing UIAccessibility and when creating accessibility elements support two cases - when there are UITests running and not.
I recommend making a suggestion using Feedback Assistant.