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.59k stars 1.11k forks source link

Not replace text when the skeleton disappears #336

Closed Juanpe closed 4 years ago

Juanpe commented 4 years ago

Fixes #296, #330

Summary

SkeletonView saves the view state of all skeletonable elements. Why? it needs to hide some texts and to change colors to skeleton looks fine. The problem is if the user modifies the saved values before to hide the skeleton when the skeleton disappears, all these values will be replaced.

For now, the solution is not to save the content of these elements, only properties related to the appearance, as the textColor. When the skeleton disappears, if the color is not equal to the value set when the skeleton appears, the color will be recovered.

Requirements (place an x in each of the [ ])