Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #49 from larrytjok/master
Browse files Browse the repository at this point in the history
[Shimmer] fix shimmer view speed when frame change
  • Loading branch information
grp committed May 18, 2015
2 parents 7dc7f8e + ceb9c80 commit 95fd9fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion FBShimmering/FBShimmeringLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,10 @@ - (void)layoutSublayers

- (void)setBounds:(CGRect)bounds
{
CGRect oldBounds = self.bounds;
[super setBounds:bounds];

if (!CGRectEqualToRect(self.bounds, bounds)) {
if (!CGRectEqualToRect(oldBounds, bounds)) {
[self _updateShimmering];
}
}
Expand Down

0 comments on commit 95fd9fe

Please sign in to comment.