xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] iOS: Pull to refresh on CollectionView triggers RemainingItemsThresholdReached #14967

Open OlaPietka opened 2 years ago

OlaPietka commented 2 years ago

Description

Using RefreshView along with CollectionView and RemainingItemsThreshold doesn’t work as expected on iOS device. Pulling down to refresh collection also triggers RemainingItemsThresholdReached event. On Android device it works perfectly fine. Number of RemainingItemsThreshold seems to be not relevant to this issue.

Steps to Reproduce

  1. Open attached project to reproduce the bug
  2. Pull to refresh the collection
  3. You can see that RemainingItemsThresholdReached is triggered

You can add more elements to collection and observe that RemainingItemsThresholdReached is not fired. You can also run it on Android to see that it works as expected.

Expected Behavior

Pull to refresh should NOT trigger RemainingItemsThresholdReached. The amount of items in collection should NOT be relevant (with 1 element or 100 elements - RemainingItemsThresholdReached should not be triggered)

Actual Behavior

If collection view has less elements than page size (all elements are visible), pull to refresh also triggers RemainingItemsThresholdReached. With number of elements exceeding page size, (not all elements are visible) pull to refresh seems to work perfectly fine - RemainingItemsThresholdReached is not fired.

Basic Information

Screenshots

Less elements in collection = RemainingItemsThresholdReached triggered

More elements in collection = RemainingItemsThresholdReached not triggered

Reproduction Link

https://github.com/kubalobacz/collection-view-bug/tree/main/App1/App1

Workaround

None

Tommigun1980 commented 2 years ago

I think you should just give up on using the CollectionView. It just doesn't work as things like these make it impossible to use it. It is the most buggy piece of software I have used in my life.

lubiepomaranczki commented 2 years ago

Hey 😊 @jsuarezruiz do you have update on this one?

It's been more then a month and we are waiting for feedback so we can align our roadmap. I know that you are busy but any feedback would be useful 🙏

cc: @maddymontaquila, @jfversluis, @davidortinau

OlaPietka commented 2 years ago

Any update on this one? :)

jl-mobitech commented 1 year ago

Any updates? cc: @jsuarezruiz , @maddymontaquila , @jfversluis , @davidortinau