Carousel inside reusable UITableViewCell, carousel views shuffled
rajdhakate opened this issue · 0 comments
rajdhakate commented
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.