Closed jlorencelim closed 6 years ago
Can you post the code snippet so I can see how you are adding carousel items to the carousel?
@IBOutlet weak var imageCarousel: ZKCarousel! = ZKCarousel() {
didSet {
for productImage in self.product.images {
Alamofire.request(productImage).responseImage { response in
if let image = response.result.value {
let slide = ZKCarouselSlide(image: image, title: "", description: "")
self.imageCarousel.slides.append(slide)
}
}
}
}
}
Did you find a fix for this? I can't find any issues on my end.
Closing due to inactivity. If it persists please open another issue.
I don't know if it helps but I managed to solve this by doing
public var slides : [ZKCarouselSlide] = [] {
didSet {
self.collectionView.reloadData()
pageControl.numberOfPages = slides.count
}
}
page number indicator has fixed 3 items even though the number of slides is not 3.