Hello,
I have this widget:
And as you can see down at the bottom, next item is very barely visible. This is because on different devices (combined with varied text sizes + number of lines) the vertical space differs quite a lot.
In the past I had the limit set to 4 items in the bottom part but that often left empty space at the bottom or even overflowed still on iPhone SE.
What is the proper way to tell ForEach
(or any other component) to "layout as many items as can fully fit, but no more".
The only solution I could think of is to use ViewThatFits
and try first rendering 6 items, then 5 and so on to find the count that fully fits. But that seems maybe too complicated?
Thanks.