I'm trying to implement the dynamic cell sizing based on TextView content in collection view. I have tried by using the estimatedSize
in collection view
collectionView.estimatedSize = CGSize(width: 1, height: 1)
but its not giving the smooth scrolling and takes more time to render the data's. If I use UILabel
instead of UITextView
the scrolling is smooth. I have referred lot of blogs but didn't get the proper solution.
Can anyone refer me a proper solution. Thanks in advance.
Note: If anyone need extra information, ask in comment section.