Automattic / Gravatar-SDK-iOS

Gravatar SDK is a Swift library that allows you to integrate Gravatar features into your own iOS applications.
https://gravatar.com
Mozilla Public License 2.0
41 stars 5 forks source link

Fix: UILabel placeholder animations doesn't work in ProfileViewController #241

Closed pinarol closed 6 months ago

pinarol commented 6 months ago

Closes https://github.com/Automattic/Gravatar-SDK-iOS/issues/240

Description

This happens when animations begin and then for some valid reason we re-display the placeholders(which basically means we update the colors and etc.).

UILabel is different in the sense that its backgroundColor is not animatable. So for UILabel we shouldn't let backgroundColor to be updated while an animation is in progress.

Testing Steps

Preferably use a network conditioner and lower your network speed

Open the Demo app > Profile View Controller > Enter an invalid email and show the bottom sheet

Observe: UILabels animate.