UICollectionViewFlowLayoutAutomaticSize how does it work with cells with different autolayout sizes

I want to set my uicollectionviewlayout estimatedItemsize as UICollectionViewFlowLayoutAutomaticSize,


I have different cells that have different heights created by cells that have different height views. These uiview heights are constrained by autolayout


Is this possible in UICollectionViewFlowLayoutAutomaticSize ?

I am working on something like this at the moment. I am yet to get anything working 100%, but the closest I have found so far is this:


https://techbrunch.gousto.co.uk/2018/05/21/Custom-UICollectionViewLayout-Auto-Layout-and-Dynamic-Type/


Do not use the code linked at the bottom, it needs a pull request merged, the author has put up this repo that works though:


https://techbrunch.gousto.co.uk/2018/05/21/Custom-UICollectionViewLayout-Auto-Layout-and-Dynamic-Type/https://github.com/kiera91/UICollectionViewLayoutDemo
Cheers,

Brett

UICollectionViewFlowLayoutAutomaticSize how does it work with cells with different autolayout sizes
 
 
Q