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

StackCollectionViewLayout loop? #10

Closed
uzman opened this issue Jan 27, 2022 · 5 comments
Closed

StackCollectionViewLayout loop? #10

uzman opened this issue Jan 27, 2022 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@uzman
Copy link

uzman commented Jan 27, 2022

Hi,
Is it possible to loop stackviewlayout?

@eleev
Copy link
Owner

eleev commented Jan 29, 2022

Hi, I assume this a duplicate issue. Please continue in the #9. Thanks

@eleev eleev closed this as completed Jan 29, 2022
@uzman
Copy link
Author

uzman commented Jan 29, 2022

This is not the same question.
I want to make infinite loop with stackcollectionviewlayout.
I want users can always swipe from 0-to last.
Is it possible?

@eleev
Copy link
Owner

eleev commented Jan 30, 2022

Yeah, that is possible

@eleev eleev reopened this Jan 30, 2022
@uzman
Copy link
Author

uzman commented Jan 30, 2022

So, how can make it infinite loop?

@eleev
Copy link
Owner

eleev commented Jan 31, 2022

The data source can be looped when swiping between the cells. As a backing data structure, the circle buffer can be used. Another approach is to implement a slightly modified version of the Stack Collection View Layout. Where, instead the layout attributes are circled in a similar manner as in the circle buffer data structure.

I would be happy to see if/when you implement the solution. Feel free to create a pool request.

@eleev eleev added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Feb 8, 2022
@eleev eleev pinned this issue Feb 8, 2022
@eleev eleev closed this as completed Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants