From ef5f864a023df62681059ceb5520e84003f99a18 Mon Sep 17 00:00:00 2001 From: Kevin G Christiano Date: Wed, 11 Mar 2020 15:42:27 -0400 Subject: [PATCH] stable --- .../Atoms/Views/CarouselIndicator/BarsIndicatorView.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atoms/Views/CarouselIndicator/BarsIndicatorView.swift b/MVMCoreUI/Atoms/Views/CarouselIndicator/BarsIndicatorView.swift index 0d80db57..f9d7ebc9 100644 --- a/MVMCoreUI/Atoms/Views/CarouselIndicator/BarsIndicatorView.swift +++ b/MVMCoreUI/Atoms/Views/CarouselIndicator/BarsIndicatorView.swift @@ -105,7 +105,10 @@ open class BarsIndicatorView: CarouselIndicator { public override func updateUI(previousIndex: Int, newIndex: Int, totalCount: Int, isAnimated: Bool) { - guard !barReferences.isEmpty else { return } + guard !barReferences.isEmpty else { + generateBars() + return + } let expression = { self.barReferences[previousIndex].view.backgroundColor = self.indicatorTintColor