How to dynamically change the height of the section or group when i use UICollectionViewCompositionalLayout.
For example, i want to change the first section's height when i scroll the collectionview up.
I can use the following code to achieve, but this looks very bad.
For example, i want to change the first section's height when i scroll the collectionview up.
I can use the following code to achieve, but this looks very bad.
Code Block swift // in didScroll callback collectionView.setCollectionViewLayout(currentCollectionViewLayout(), animated: true)