So i am trying implementing collectionView inside tableviewCell and i get a weird behaviour after fetching data.
This is the tableViewCell:
class PortfolioPieTableViewCell: PortfolioBaseCell {
@IBOutlet weak var pageControl: UIPageControl!
@IBOutlet weak var collectionView: UICollectionView!
private var disposeBag = DisposeBag()
override class var identifier: String {
return "PortfolioPieTableViewCell"
}
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func prepareForReuse() {
super.prepareForReuse()
disposeBag = DisposeBag()
}
func config(viewModel: PortfolioPieTableViewViewModelCell) {
collectionView.register(UINib(nibName: "PortfolioPieCollectionViewCell", bundle: nil), forCellWithReuseIdentifier: "PortfolioPieCollectionViewCell")
viewModel.items.debug("PortfolioPieTableViewViewModelCell