From 4cac288e5ba420b71524db3d47cc17eaa34174d9 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Thu, 9 Apr 2020 11:29:05 -0400 Subject: [PATCH] carousel loop fix --- MVMCoreUI/Atomic/Organisms/Carousel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Organisms/Carousel.swift b/MVMCoreUI/Atomic/Organisms/Carousel.swift index 05a28a51..18c2978a 100644 --- a/MVMCoreUI/Atomic/Organisms/Carousel.swift +++ b/MVMCoreUI/Atomic/Organisms/Carousel.swift @@ -294,7 +294,7 @@ extension Carousel: UIScrollViewDelegate { return } - let lastPageIndex = numberOfPages + 1 + let lastPageIndex = numberOfPages + 2 let goToIndex = {(index: Int) in self.goTo(index, animated: false) self.collectionView.layoutIfNeeded()