ZLSwipeableView icon indicating copy to clipboard operation
ZLSwipeableView copied to clipboard

How can i limit the view count?

Open waqasarshad opened this issue 9 years ago • 4 comments

lets say i want 10 cards in my app but these cards seems unlimited how can i limit cards to only 10.

waqasarshad avatar Aug 30 '16 12:08 waqasarshad

any response??

waqasarshad avatar Aug 31 '16 06:08 waqasarshad

self.swipeableView.numberOfActiveViews = 10;

You should read the header files and the sample project :)

rogerluan avatar Sep 05 '16 04:09 rogerluan

I'm having the same issue 😟

I have 8 elements in an Array and i set the number of elements using:

self.cardsStackView.numberOfActiveView = UInt(self.candidatesArray.count)

After that, i use a for sentence to create the views:

for candidate in self.candidatesArray { self.cardsStackView.nextView = {return self.nextCardView()} }

The problem is that the information of the firsts 8 cards is the same (it should be different for each card) and the stack seems to be infinite.

Thanks and best regards!

llKoull avatar Jan 05 '17 12:01 llKoull

Duplicate of #89 Check the response

ralphcorleone avatar Jan 28 '18 00:01 ralphcorleone