Skip to content

Commit

Permalink
Fix animating background colors in View
Browse files Browse the repository at this point in the history
Summary:
See facebook#47011

borders do not have this problem because they call `removeAllAnimations` on the layer after changing it, which is what I am doing here

Reviewed By: cipolleschi

Differential Revision: D64493968
  • Loading branch information
joevilches authored and facebook-github-bot committed Oct 17, 2024
1 parent 8e80257 commit 2a0f78f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,8 @@ - (void)invalidateLayer
_backgroundColorLayer.mask = maskLayer;
_backgroundColorLayer.cornerRadius = 0;
}

[_backgroundColorLayer removeAllAnimations];
}

// borders
Expand Down

0 comments on commit 2a0f78f

Please sign in to comment.