Skip to content

Commit

Permalink
Fix animating background colors in View (#47101)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #47101

See #47011

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

Changelog: [iOS] [fixed] - Fixed bug where background colors would sometimes animate when changing on Views

Reviewed By: cipolleschi

Differential Revision: D64493968

fbshipit-source-id: cf81549f21b124b67c6e7647c6ae827bfe80a9cf
  • Loading branch information
joevilches authored and blakef committed Oct 28, 2024
1 parent e56bd89 commit defc0c8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,8 @@ - (void)invalidateLayer
_backgroundColorLayer.mask = maskLayer;
_backgroundColorLayer.cornerRadius = 0;
}

[_backgroundColorLayer removeAllAnimations];
}

// borders
Expand Down

0 comments on commit defc0c8

Please sign in to comment.