This is a sample project aiming to achieve a self sizing collection view cell with dynamic height.
Following are the key points of this demo project:
- I have wrapped all the labels in a containerView [UIView] which is having all the 4 constraints w.r.t. the UICollectiionViewCell.
- UICollectionViewCell must be created just like auto resizing UITableViewCell satsifying all the auto layout constraints.
- Its wroking without assigning any estimated Size for the cell or without using any other method like sizeThatFits() etc.
Requesting PRs and suggestion on the open issues. Feel free to share your feedback. Happy Coding !!