Is it possible to make a component that would receive a simple
content: @Composable () -> Unit
but then will wrap each child into another component?
j
jw
04/25/2021, 8:07 PM
Hmm probably not unless you control the Applier or write a compiler plugin to rewrite the compose compiler statements
z
Zach Klippenstein (he/him) [MOD]
04/25/2021, 8:29 PM
Depending on what you are trying to do with the wrappers, you could maybe get something to work with a SubcomposeLayout - but that would still only work for children emitted directly from
content
o
orangy
04/25/2021, 8:58 PM
Though I’ve solved my task with a bit of DSL (and it appears even better than what I originally envisioned – less magic!), I’m still interested in theoretical stuff here…
z
Zach Klippenstein (he/him) [MOD]
04/26/2021, 12:19 AM
Could you share a few more details, maybe some code?