Search code examples
iosobjective-cswiftxcodeicarousel

How to change iCarousel autoScrollDirection from left to right To Right to left


I have gone through many links and checked iCarousel right to left scroll moving to left to right too, but did not get any solution to my issue :

I am using iCarousel custom library with enabling Autoscroll but in this library, it only allows Left to right scroll direction for autoscroll, my issue is I want it in reverse (Right to left)direction.can anyone help me with this, please.

Thank you


Solution

  • change the autoscroll value from 1 to -1

    carousel.autoscroll = -1.0
    [carousel scrollToItemAtIndex:0 animated:YES];