Attach SwiftUI hierarchy to Events
Attaching the hierarchy of SwiftUI to events can be helpful for debugging. Check out this excellent use case on Twitter.
We still need to discuss and find out how such a feature can look.
Maybe this library https://github.com/domesticcatsoftware/DCIntrospect can be helpful.
This issue has gone three weeks without activity. In another week, I will close it.
But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!
"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀
Please keep this open.
A way to retrieve the view hierarchy: https://www.fivestars.blog/articles/inspecting-views/
@brustolin, please add a short comment on why this is currently not possible, and turn this into a discussion.
Right now is not possible to retrieve SwiftUI view hierarchy on demand, not in an official way anyways.
If Apple ever updates its API we reopen this issue.