Skip to content

Re-enable Issue7993 test on iOS/Catalyst - CollectionView scroll position not reset when updating ItemsSource #33500

@rmarinho

Description

@rmarinho

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:

  1. Catalyst: DragCoordinates is not supported
  2. 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:

  • Investigate why scroll position is not reset when ItemsSource changes
  • Fix the scroll position reset behavior
  • Remove iOS from conditional compilation or adapt test

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions