Add a variable called "lineNumber" to record how many lines of tags view. So that users can calculate the contentSize of UICollectionView dynamically and change the constraints of UICollectionView. (In the case of this UICollectionView is embeded in other views or animationing)
@Cao-Yu thanks for the PR & it looks good but just one thing, you forgot to reset the lineNumber in resetLayoutState() method. Can you please do that as well ?
Add a variable called "lineNumber" to record how many lines of tags view. So that users can calculate the contentSize of UICollectionView dynamically and change the constraints of UICollectionView. (In the case of this UICollectionView is embeded in other views or animationing)