This commit is contained in:
Kevin G Christiano 2020-03-11 15:42:27 -04:00
parent f7f15c906f
commit ef5f864a02

View File

@ -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