I am creating a view that is like the springboard screen in iOS. (This is a follow-up-question to this question). My implementation is a collection view, that has a custom layout using UICollectionViewLayout. This layout is build according to the code that was published in this answer. Since I want to have my icons to shake and have a little delete button in the upper-left corner, I have subclassed UICollectionViewLayoutAttributes, with a new attribute of deleteButtonHidden. All of this works well together. But I have a problem when I populate the collection view with more icons to fit into one page. When I enter edit-mode, and scroll back and forth, I get that some icons are not shaking anymore. I tried to debug it, and I realised that the method applyLayoutAttributes does not get called for some of my cells. I also tried to call invalidateLayout inside the method scrollViewDidScroll, but that didn't help.
Does anyone have an idea why some cells don't get their attributes applied?
UPDATE: I just found out that Apple has a patent for jiggling icons. So implementing this design is not going to be approved. Therefore, this question is not relevant anymore.