diff --git a/MVMCoreUI/Atoms/Views/MVMCoreUICheckBox.m b/MVMCoreUI/Atoms/Views/MVMCoreUICheckBox.m index f7239def..2af554c8 100644 --- a/MVMCoreUI/Atoms/Views/MVMCoreUICheckBox.m +++ b/MVMCoreUI/Atoms/Views/MVMCoreUICheckBox.m @@ -183,6 +183,7 @@ static const CGFloat CheckBoxHeightWidth = 18.0; - (instancetype)initWithCoder:(NSCoder *)coder { self = [super initWithCoder:coder]; if (self) { + [self setupView]; [self setupWithCheckedColor:[UIColor whiteColor] unCheckColor:[UIColor whiteColor] text:nil]; [self addAccessibleProperties]; } @@ -192,6 +193,7 @@ static const CGFloat CheckBoxHeightWidth = 18.0; - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { + [self setupView]; [self setupWithCheckedColor:[UIColor whiteColor] unCheckColor:[UIColor whiteColor] text:nil]; [self addAccessibleProperties]; } @@ -243,6 +245,7 @@ static const CGFloat CheckBoxHeightWidth = 18.0; [self.checkMark.centerXAnchor constraintEqualToAnchor:self.checkedSquare.centerXAnchor].active = YES; [self.checkMark.centerYAnchor constraintEqualToAnchor:self.checkedSquare.centerYAnchor].active = YES; } else { + [self.checkMark removeFromSuperview]; [self.checkedSquare addSubview:self.checkMark]; }