Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After reloading, the first or last cell is not centered aligned. #68

Open
banuharshavardhan opened this issue Sep 29, 2021 · 2 comments

Comments

@banuharshavardhan
Copy link

banuharshavardhan commented Sep 29, 2021

I have few cells in my collection view, now I deleted the first cell or last cell. After deleting I'm reloading the collection view, here the next cell or previous cell (first or last based on deletion) was not horizontally centered aligned. If user scroll the content then only the cell alignment is adjusting. I tried to move programatically by using setContentOffset, scrollToItem, scrollToRect but none of them worked. First and second screenshots were related to the issue after collection view reload due to deletion of first and last record respectively. The last/third screenshot belongs to expected layout, which got if user swipes on the screen

After reload when first item deleted:
Simulator Screen Shot - iPhone 11 - 2021-09-29 at 14 01 06

After reload when last item deleted:
Simulator Screen Shot - iPhone 11 - 2021-09-29 at 14 04 22

After user move the screen:
Simulator Screen Shot - iPhone 11 - 2021-09-29 at 13 58 11

@akash-611
Copy link

have you found the solution?

@AhmedShammala
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants