ElaWorkshop / TagListView

Simple and highly customizable iOS tag list view, in Swift.
MIT License
2.63k stars 492 forks source link

rearrangeViews() is called multiple time and result in table view scrolling not smooth #254

Open benba5 opened 4 years ago

benba5 commented 4 years ago

With my application, I add TagListView in a table view cell. I notice that the scrolling is not smooth when some cells contain the tag list which consists of a log of tags, for example 30 tags. Finally I found out that this problem is from rendering a lot of tags.

When I 'm adding tags to the list, I'll call addTags() on TagListView. I looked into the code, and found that rearrangeViews() will be called multiple times with the same count as tag count in the array. I tried figure out by adding some methods that work in the way that rearrangeViews() will be called once per one adding.

Not sure if this is the proper way. Can I make a pull request of that code?

Thank you very much for the nice library. ^___^

SSnowCat commented 3 years ago

did u solve the problem?