diff --git a/TABAnimatedDemo/TABAnimated/Decorate/DarkMode/TABAnimatedDarkModeImpl.m b/TABAnimatedDemo/TABAnimated/Decorate/DarkMode/TABAnimatedDarkModeImpl.m index cbc7d487..3bb1e307 100644 --- a/TABAnimatedDemo/TABAnimated/Decorate/DarkMode/TABAnimatedDarkModeImpl.m +++ b/TABAnimatedDemo/TABAnimated/Decorate/DarkMode/TABAnimatedDarkModeImpl.m @@ -41,13 +41,8 @@ - (void)traitCollectionDidChange:(UITraitCollection *)traitCollection backgroundLayer.backgroundColor = animatedBackgroundColor.CGColor; for (TABComponentLayer *layer in layers) { - if (layer.numberOflines > 0) { - for (TABComponentLayer *sub in layer.lineLayers) { - sub.backgroundColor = animatedColor.CGColor; - } - }else { - layer.backgroundColor = animatedColor.CGColor; - } + + layer.backgroundColor = animatedColor.CGColor; if (layer.contents && layer.placeholderName && layer.placeholderName.length > 0) { layer.contents = (id)[UIImage imageNamed:layer.placeholderName].CGImage; }