How to make the subview visible to the iOS UIAutomation tree

I recall there was some discussion on the steps need to make a subview visible to the UITree. Can someone point me to that?

this apple link
goes deep into how to make this work.

But basically you make the parent container accessibility=false and the child containers views accessibilty=true.