问题
For my app, it is necessary to resize a specific collectionview cell during runtime in order to fit the content size - just like .sizeToFit() but for collection view cells
However, so far I only found solutions on how to dynamically size each collection view cell on startup.
Is there any way to resize a collection view cell (in a smooth way) to fit the content size without reloading the whole collection view and losing all entered data?
I am using AutoLayout and no storyboards - a programatic approach would be helpful.
Any help would be appreciated!
来源:https://stackoverflow.com/questions/56925689/resize-collectionview-cell-during-runtime-without-reloading