There some blank spaces appears between items on CollectionView on iOS if items has different heights. Best way to show these spaces is updating the list, for example inserting new item at the top. This problem occurs only on iOS, works fine on Android.
These blank spaces should not appears after inserting new item to list, like on image below:
Blank spaces appears after inserting new item to list. Look how it looks on image below:
Besides, CollectionView doesn't scroll smoothly, when you try to implement pagination on your list and if items on this list have different heights you can observe that list is jumping a bit, it should stay on same scrolling position. Look at video below:
https://streamable.com/b4tsmv
https://github.com/mariaszek9003/XamarinFormsCollectionViewTest
I experience that, too. It's quite annoying bug
In the example you haven't got ItemSizingStrategy="MeasureAllItems" set, the default behaviour is to measure the first item and use that size for all items.
@DuncWatts MeasureAllItems is a default value for ItemSizingStrategy, so it not make any difference if I set it explicitly https://docs.microsoft.com/pl-pl/dotnet/api/xamarin.forms.itemsizingstrategy?view=xamarin-forms
Maybe this is the root cause of https://github.com/xamarin/Xamarin.Forms/issues/12554 and https://github.com/xamarin/Xamarin.Forms/issues/12555?
If so Xamarin please fix this as it introduces so many follow-up bugs that it's almost impossible to use the CollectionView. It would be such a useful component.
Thanks.
Thats a big one
A huge one
That's what she said.
Most helpful comment
Maybe this is the root cause of https://github.com/xamarin/Xamarin.Forms/issues/12554 and https://github.com/xamarin/Xamarin.Forms/issues/12555?
If so Xamarin please fix this as it introduces so many follow-up bugs that it's almost impossible to use the CollectionView. It would be such a useful component.
Thanks.