Skip to content

Commit a0ffe25

Browse files
committed
If a badge alignment is specified in the init method, we must call the setter so that UIAppearance doesn't override the value with the default one. Fixes issue #18.
1 parent c9cee65 commit a0ffe25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JSBadgeView/JSBadgeView.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ - (id)initWithParentView:(UIView *)parentView alignment:(JSBadgeViewAlignment)al
130130
{
131131
if ((self = [self initWithFrame:CGRectZero]))
132132
{
133-
_badgeAlignment = alignment;
133+
self.badgeAlignment = alignment;
134134
[parentView addSubview:self];
135135
}
136136

0 commit comments

Comments
 (0)