-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Fixed the RemainingItemsThresholdReachedCommand not firing issue in CollectionView #26067
base: main
Are you sure you want to change the base?
Conversation
Hey there @Vignesh-SF3580! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
|
||
[Test] | ||
[Category(UITestCategories.CollectionView)] | ||
public void RemainingItemsThresholdReachedCommandFired() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test is failing on iOS:
Assert.That(label.GetText(), Is.EqualTo("Command Fired!"))
Expected string length 14 but was 9. Strings differ at index 0.
Expected: "Command Fired!"
But was: "Not fired"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've updated the code based on your feedback. Could you please review it and let me know if there are any further concerns
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Issue Detail
The RemainingItemsThresholdReachedCommand is not triggered as expected on macOS and iOS platforms.
Root Cause
On macOS and iOS, the index of the items was only being updated based on the currently visible items. During scrolling, the index was not recalculated correctly, which caused the command to fail when the remaining items threshold was reached.
Description of Change
Updated the logic to ensure the index of items is recalculated accurately during scrolling. This change ensures that the RemainingItemsThresholdReachedCommand is triggered correctly when the threshold condition is met on macOS and iOS.
Tested the behaviour in the following platforms
Issues Fixed
Fixes #25889
Screenshots
Before.Fix.mov
After.Fix.mov