Skip to content

Commit

Permalink
Merge pull request #20 from jeroentrappers/master
Browse files Browse the repository at this point in the history
Update BBBadgeBarButtonItem.m
  • Loading branch information
TanguyAladenise committed Sep 8, 2015
2 parents 62d739f + 08df805 commit 28ec386
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions BBBadgeBarButtonItem/BBBadgeBarButtonItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ - (void)updateBadgeValueAnimated:(BOOL)animated
self.badge.text = self.badgeValue;

// Animate the size modification if needed
NSTimeInterval duration = animated ? 0.2 : 0;
[UIView animateWithDuration:duration animations:^{
//NSTimeInterval duration = animated ? 0.2 : 0;
//[UIView animateWithDuration:duration animations:^{
[self updateBadgeFrame];
}];
//}]; // this animation breaks the rounded corners in iOS 9
}

- (UILabel *)duplicateLabel:(UILabel *)labelToCopy
Expand Down Expand Up @@ -213,4 +213,4 @@ - (void)setBadgeOriginY:(CGFloat)badgeOriginY
}
}

@end
@end

1 comment on commit 28ec386

@JT997
Copy link

@JT997 JT997 commented on 28ec386 Jan 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Do you kan Held me to hack

Please sign in to comment.