Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i limit the view count? #80

Open
waqasarshad opened this issue Aug 30, 2016 · 4 comments
Open

How can i limit the view count? #80

waqasarshad opened this issue Aug 30, 2016 · 4 comments

Comments

@waqasarshad
Copy link

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

@waqasarshad
Copy link
Author

any response??

@rogerluan
Copy link

self.swipeableView.numberOfActiveViews = 10;

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

@llKoull
Copy link

llKoull commented Jan 5, 2017

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!

@ralphcorleone
Copy link

ralphcorleone commented Jan 28, 2018

Duplicate of #89 Check the response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants