Skip to content

[CollectionView2] Item spacing not properly applied between items in Horizontal LinearItemsLayout #35429

Description

@PureWeen

Description

Item spacing regression in CollectionView2 with horizontal LinearItemsLayout. The spacing between group headers and items is not correctly applied on iOS — this appears to be a recurrence of #25859 which was fixed for CV1 but may not have carried over to the CV2 handler.

Steps to Reproduce

  1. Create a CollectionView with IsGrouped="True" and horizontal LinearItemsLayout with ItemSpacing
  2. Run on iOS
  3. Observe spacing is missing between group headers and items

Expected Behavior

Consistent item spacing between all items and group headers, matching Android behavior.

Actual Behavior

Left spacing is missing for group headers after the first group on iOS.

Related Issues

Version with bug

.NET 11 Preview

Is this a regression from previous behavior?

Yes — this was fixed in #25859 for CV1 but appears to regress with CollectionView2.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions