I have spent weeks trying to get this to work and have looked at many different suggestions on here, Apple developer forums, Google etc. and am still pulling my hair out. Any help would be greatly appreciated.
I have a ViewController that contains a TableView. It is not a full-screen tableView.
The tableView is built with customTableViewCells that each holds a CollectionView. The problem I have is that the self-sizing collectionView and the self-sizing tableView rows just don't seem to work. I've found a few options online but they only seem to partially work.
This is what I get when it initially runs:
I'm including a link to the project file as that's probably easier than copying code into here: https://www.dropbox.com/sh/7a2dquvxg62aylt/AACK_TjDxT9eOShZaKi7vLYga?dl=0
Some of the online 'workarounds' don't work in all cases - e.g. if you tap one of the buttons inside the CollectionView, it is removed and the collectionView (and subsequently the TableView) should resize but again I can't get this to consistently work.
Some of the solutions I've tried:
UICollectionView Self Sizing Cells with Auto Layout
UICollectionView inside a UITableViewCell -- dynamic height?
Dynamic height for a UITableView based on a dynamic collection view
Auto-sizing UITableViewCell which contains UICollectionView
Any help would be greatly appreciated.