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

Scroll left for more cards, Insert item at the beggining? #7

Open
sevgjan opened this issue Apr 21, 2019 · 0 comments
Open

Scroll left for more cards, Insert item at the beggining? #7

sevgjan opened this issue Apr 21, 2019 · 0 comments

Comments

@sevgjan
Copy link

sevgjan commented Apr 21, 2019

When I try to do something like this:

self.movies.insert(newMovie, at: 0)
self.collectionView.insertItems(at: [IndexPath(item: 0, section: 0)])
self.collectionView.collectionViewLayout.invalidateLayout()
self.collectionView.layoutIfNeeded()

I get that card on top of the first one, it has a strange layout problem.
Is it possible to scroll left for more cards?

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

1 participant