The test for issue #7993 is currently completely disabled on iOS and Catalyst platforms. The issue is related to CollectionView scroll position not being reset when the ItemsSource is updated.
Current State
The entire test file is wrapped in a conditional compilation directive:
#if TEST_FAILS_ON_CATALYST && TEST_FAILS_ON_IOS
// In MacCatalyst, the DragCoordinates is not supported.
// On the iOS platform, scroll position is not reset while update the itemsource.
// Issue: https://github.com/dotnet/maui/issues/26366
// ... entire test ...
#endif
Test File
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7993.cs
Related Issues
Test Details
The test has two known issues on iOS/Catalyst:
- Catalyst: DragCoordinates is not supported
- iOS: Scroll position is not reset when ItemsSource is updated
Expected Behavior
When ItemsSource of a CollectionView is updated, the scroll position should reset to the top (or appropriate initial position).
Acceptance Criteria
For iOS:
For Catalyst:
The test for issue #7993 is currently completely disabled on iOS and Catalyst platforms. The issue is related to CollectionView scroll position not being reset when the ItemsSource is updated.
Current State
The entire test file is wrapped in a conditional compilation directive:
Test File
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/XFIssue/Issue7993.csRelated Issues
Test Details
The test has two known issues on iOS/Catalyst:
Expected Behavior
When ItemsSource of a CollectionView is updated, the scroll position should reset to the top (or appropriate initial position).
Acceptance Criteria
For iOS:
For Catalyst:
Either implement DragCoordinates support or
Adapt test to work without DragCoordinates
Remove Catalyst from conditional compilation
Verify test passes on iOS and Catalyst platforms