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

Manuel Unterhofer

02/21/2023, 3:51 PM
Hey! How would I implement the thing mentioned in the docs of `SubcomposeLayout`:
For example you have a list of 100 items and instead of composing all of them you only compose the ones which are currently visible(say 5 of them) and compose next items when the component is scrolled.
I don’t get how I can determine which items are visible and which aren’t 🤷 Is there something I can read from the parent
SubcomposeMeasureScope
that I would close over in my
MeasureResult#placeChildren
?