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

Carousel inside reusable UITableViewCell, carousel views shuffled #898

Open
rajdhakate opened this issue Jul 14, 2020 · 0 comments
Open

Comments

@rajdhakate
Copy link

rajdhakate commented Jul 14, 2020

Hi,

I'm using iCarousel inside reusable UITableViewCell. When I change current item of carousel inside one UITableView cell, and scroll down the tableview, upcoming carousel's current item index is already changed to previous carousel's index.

I've tried the UITableViewCell's prepareForReuse method,

override func prepareForReuse() { super.prepareForReuse() postViewHeightConstraint.constant = 0 carousel.invalidateIntrinsicContentSize() }

setting datasource and delegate nil in prepareForReuse renders empty carousel.

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