skip to Main Content

How to create dynamic collection view in a table view cell, without reloading table view swift? – Ios swift

I'm using this code in cellForRowAt : cell.frame = tableView.bounds cell.layoutIfNeeded() collectionView.reloadData() heightConstraint.constant = collectionView.collectionViewLayout.collectionViewContentSize.height and func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { return UITableView.automaticDimension } This works at the first time, but when I load more…

VIEW QUESTION
Back To Top
Search