Skip to content

Commit

Permalink
Merge pull request #23 from SohailKh/patch-1
Browse files Browse the repository at this point in the history
Add option to add border to badge
  • Loading branch information
cwRichardKim committed Jul 9, 2016
2 parents 9e950c1 + a581855 commit d9e42c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions RKNotificationHub/RKNotificationHub.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ FOUNDATION_EXPORT CGFloat const RKNotificationHubDefaultDiameter;
- (void)setView:(UIView *)view andCount:(int)startCount;
- (void)setCircleAtFrame:(CGRect)frame;
- (void)setCircleColor:(UIColor*)circleColor labelColor:(UIColor*)labelColor;
- (void)setCircleBorderColor:(UIColor *)color borderWidth:(CGFloat)width;
- (void)moveCircleByX:(CGFloat)x Y:(CGFloat)y;
- (void)scaleCircleSizeBy:(CGFloat)scale;
@property (nonatomic, strong) UIFont *countLabelFont;
Expand Down
5 changes: 5 additions & 0 deletions RKNotificationHub/RKNotificationHub.m
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,11 @@ - (void)setCircleColor:(UIColor*)circleColor labelColor:(UIColor*)labelColor
[countLabel setTextColor:labelColor];
}

- (void)setCircleBorderColor:(UIColor *)color borderWidth:(CGFloat)width {
redCircle.layer.borderColor = color.CGColor;
redCircle.layer.borderWidth = width;
}

- (void)hideCount
{
countLabel.hidden = YES;
Expand Down

0 comments on commit d9e42c2

Please sign in to comment.