How can I dump the compose nodes from a ComposeVie...
# compose
a
How can I dump the compose nodes from a ComposeView ? Asking for debugging and tooling purposes
o
You can print the semantic tree
But you can only do that in test
z
a
Thanks a lot for the info. And I assume that I would have to write a wrapper Composable just to get hold of the
currentComposer
? Or there's a more straightforward way to get the it from the ComposeView ? My idea is to combine view traversal and compose nodes traversal. I found https://gist.github.com/takahirom/c961ed62b49a9126ef215f25e787caa9 but it seems pretty hacky