There is an effort ongoing right now to add InspectorInfo modifiers to all modifiers that describe their values in a human-readable way for some sort of debugger (presumably the LayoutInspector in Android Studio?). This is exactly the sort of information that could be useful for Radiography to render.
There's an example CL that adds this to a modifier here.
Action items:
[ ] Figure out how this info is stored in the slot table and how to extract it.
[ ] Is this information actually worth surfacing explicitly somehow in the Radiography API? (E.g. in ComposeView somehow.) Should it replace exposing modifiers entirely? Are more type-safe modifiers still a better API for reflectively selecting and rendering type-safe data?
Note that even if this does provide a better source of debug data going forward, it will only be available on newer versions of Compose for some time, so Radiography will need to support both for at least a few releases.
There is an effort ongoing right now to add
InspectorInfo
modifiers to all modifiers that describe their values in a human-readable way for some sort of debugger (presumably the LayoutInspector in Android Studio?). This is exactly the sort of information that could be useful for Radiography to render.There's an example CL that adds this to a modifier here.
Action items:
ComposeView
somehow.) Should it replace exposing modifiers entirely? Are more type-safe modifiers still a better API for reflectively selecting and rendering type-safe data?Note that even if this does provide a better source of debug data going forward, it will only be available on newer versions of Compose for some time, so Radiography will need to support both for at least a few releases.