https://kotlinlang.org logo
#compose
Title
# compose
v

Vinay Gaba

12/23/2021, 6:42 PM
Feature Request 👉🏼 Get the name of the composable in the Semantics or through some modifier. I think this should be straightforward to expose and would really help with building interesting tooling on top of Compose. In addition, it will also help with use cases like logging. I'm curious if there is already a non hacky way to do this? If not, I'm happy to file a ticket
6
f

FunkyMuse

12/27/2021, 12:12 AM
Couldn't you just achieve this as if you were to write a KSP plugin that visits every @Composable annotated function/property and get the name of that it? But yes, it's not straight forward and I don't think any straight forward solution can be since it's gonna be useless when R8 comes into play
2 Views