Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

[Bug] CollectionView: items are not updated during reuse (Forms/iOS) #10293

@zoli13

Description

@zoli13

Description

Using CollectionView in Xamarin.Forms causing not all items are displayed properly, but after a while, they just get repeated.
It happens only on iOS (tested on 13.4), on Android, it works ok.
Tested on XF 4.5.0.617 and 4.5.0.530- both same

Steps to Reproduce

  1. Open attached project, and run on iOS
    CollectionViewBug.zip

If you see the debug output log, you could also see that on iOS, after you scroll out the first page, it does not call SKCanvasViewIconListItem_PaintSurface to paint the new items scrolled into the view - it just reuse(?) existing items without calling InvalidateSurface() on them, so old drawing remains.
On Android, you could see that SKCanvasViewIconListItem_PaintSurface is called for every item as you scroll.

Expected Behavior

To display all items in CollectionView properly

Basic Information

  • Version with issue: 4.5.0.617 and 4.5.0.530 (tested only these two)
  • Platform Target Frameworks:
    • iOS: 13.4

Screenshots

Android OK:
android


iOS wrong, after item 40, old items appear in random(?) order instead of 41, 42, 43, ...:
ios

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions