sentry-cocoa icon indicating copy to clipboard operation
sentry-cocoa copied to clipboard

Attach SwiftUI hierarchy to Events

Open philipphofmann opened this issue 4 years ago • 4 comments

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.

philipphofmann avatar Dec 20 '21 10:12 philipphofmann

Maybe this library https://github.com/domesticcatsoftware/DCIntrospect can be helpful.

philipphofmann avatar Jan 12 '22 08:01 philipphofmann

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 🥀

github-actions[bot] avatar Feb 02 '22 09:02 github-actions[bot]

Please keep this open.

sindresorhus avatar Feb 03 '22 09:02 sindresorhus

A way to retrieve the view hierarchy: https://www.fivestars.blog/articles/inspecting-views/

brustolin avatar Aug 18 '22 14:08 brustolin

@brustolin, please add a short comment on why this is currently not possible, and turn this into a discussion.

philipphofmann avatar Mar 29 '23 12:03 philipphofmann

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.

brustolin avatar May 03 '23 12:05 brustolin