carousel loop fix

This commit is contained in:
Pfeil, Scott Robert 2020-04-09 11:29:05 -04:00
parent b7edafc5d8
commit 4cac288e5b

View File

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