iosswipe-gestureicarousel

disable swipe gesture for iCarousel


I am using iCarousel to display an array of images and I want to disable the swipe gesture. I did not find that in the documentation. not sure if this is doable or not


Solution

  • If you want to disable the swipe gesture then I think are you want to do something like programatically change the image.

    For very simply disable the user interaction of carousel.

    If you using storyboard then simple remove checkmark of User Inreaction Enabled

    enter image description here

    If you use by code then following code to disable the User Inreaction Enabled

    yourcarousel.userInteractionEnabled = FALSE;
    

    May this help lot to solve your problem.