Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.51k stars 1.1k forks source link

Fix skeleton flow notifications triggered multiple times #476

Closed Juanpe closed 2 years ago

Juanpe commented 2 years ago

Resolves #473

Because some UI events could modify the number of rows is visible, we have to "skeletonize" the cell in the cellForDraw method is called. Due to that, the notifications were sent multiple times. The fix consists in to have a flag to indicate if the delegate has to be notified or not.