diff --git a/Pod/Classes/MBCircularProgressBarView.m b/Pod/Classes/MBCircularProgressBarView.m index 5c6c71a..6ee906f 100644 --- a/Pod/Classes/MBCircularProgressBarView.m +++ b/Pod/Classes/MBCircularProgressBarView.m @@ -66,6 +66,17 @@ -(void)initView:(CGRect)frame{ [self setCountdown:NO]; } +- (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection { + [super traitCollectionDidChange:previousTraitCollection]; + + if (@available(iOS 13.0, *)) { + if ([previousTraitCollection hasDifferentColorAppearanceComparedToTraitCollection: self.traitCollection]) { + // redraw layer (dark-mode) + [self.layer setNeedsDisplay]; + } + } +} + #pragma mark - Getters and Setters for layer properties -(void)setShowValueString:(BOOL)showValueString{