Souce Code : My code
I need to create layout having dynamic size as per the text of different length, for that using collectionview inside tableview cell
I have created custom collectionview with self sizing collectionview cell in it. I have used CustomFlowLayout(sub class of UICollectionViewLayout) with prepare override method to calculate size of each cell.
I am able to achieve the dynamic size collectionview cell, now I need to make collectionview height dynamic based on its content size, as of now I have taken height contstraint of collectionview and set it as 200 fixed.
Need help regarding how to set collectionview height dynamically based on its content and at the same time adjust the parent tableview cell to fit the its content
Below is the screenshot of what I want to achieve, Thanks much!