Weird UI glitch in horizontal Collection View section

Hello,

my app sometimes has this super weird issue with scroll in a horizontal section (see the GIF below). The thing is, I have ever spotted it only in this third section and not the two sections above it.

All have the same compositional collection view layout and are powered by the diffable data source. I reexamined the item definition and I don't think this could be a case of hash values being same and hence confusing the collection view.

It also seems to happen only to these first items. It is not frequent but on my own device I have seen it many times so far. The problem always seems to manifest in similar manner.

Anyone seen this? I am hoping that maybe someone will recognize the problem from the GIF.

Do you get the same results with just the relevant code in a small test project? If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project.

I can try prepare the project, but this issue seems to be around 1 in 10 or 1 in 20, it does not reliably appear in the main app.

Weird UI glitch in horizontal Collection View section
 
 
Q