Closed JayceBryce closed 5 years ago
Hey JayceBryce. I think the issue here is related to this stackoverflow question https://stackoverflow.com/questions/29658328/uicollectionview-horizontal-paging-not-centered.
You can potentially also override the targetContentOffset
method of AnimatedCollectionViewLayout
to make sure when the user stops scrolling, the cell will snap to the right offset. Regardless, I don't think the animator itself needs to be changed.
Ok thanks!
I'll close this issue for now. If you have further questions, feel free to reopen it.
I'm currently trying to set spacing between my collection view cells. The issue is every time I scroll horizontally the cell does not reset back to where is should be.
Please Look at image bellow!
Here is my code:
Also here are images showing what happens: