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

Reload Data #7

Open
jpv123 opened this issue Aug 9, 2017 · 4 comments
Open

Reload Data #7

jpv123 opened this issue Aug 9, 2017 · 4 comments
Assignees
Labels

Comments

@jpv123
Copy link

jpv123 commented Aug 9, 2017

Hi. Library is working fine, however I can't found any way to call a reloadData. I have some asynchronous calls that may change my dataSource and I need the swipe view to reload accordingly

Any ideas?

@adrienmi
Copy link

adrienmi commented Aug 9, 2017

Same issue here, didn't find any public API to do this.

Thanks

@jpv123
Copy link
Author

jpv123 commented Aug 9, 2017

I found a workaround but is not the best one.

In the calculate method found in HFSwipeView.swift, add at the end a collectionView.reloadData(). When the asynchronous call finish, the only thing to do is a yourSwipeView.layoutSubviews(). This forces the calculate method again, recalculating the collectionView.

@DragonCherry
Copy link
Owner

I've added reloadData() in develop branch, but I'm planning to replace whole logic to do same thing more efficient way. But I can't say when to start it by now. T_T

@DragonCherry DragonCherry self-assigned this Aug 10, 2017
@ablyGurjitSingh
Copy link

Do you have any update on this.
I am using it in tableview cell but can't refresh it when data received from API.
Please help.

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

No branches or pull requests

4 participants