Is it possible to configure that my iCarousel carousel will scroll the items with infinite loops?
I haven't found something like that and I need it,
Thanks for helping!
Yup, this is easy to do in iCarousel:
- (CGFloat)carousel:(iCarousel *)carousel valueForOption:(iCarouselOption)option withDefault:(CGFloat)value {
switch (option) {
case iCarouselOptionWrap:
return YES;
}
return value;
}
If you are looking for solution in swift:
func carousel(carousel: iCarousel, valueForOption option: iCarouselOption, withDefault value: CGFloat) -> CGFloat
{
switch (option)
{
case .Wrap:
return 1
default:
return value
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With