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

ReloadData calls viewControllerForPageAt twice #79

Open
pcentieiro opened this issue Apr 4, 2019 · 7 comments
Open

ReloadData calls viewControllerForPageAt twice #79

pcentieiro opened this issue Apr 4, 2019 · 7 comments

Comments

@pcentieiro
Copy link

Describe the bug
If a SwipeMenuView is added to a ViewController (following a reloadData), or reloadData is called on the Demo project (using SwipeMenuViewController) the viewControllerForPageAt is called twice.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a SwipeMenuView
  2. Call reloadData
  3. Add a breakpoint/log on viewControllerForPageAt and you'll see being called twice per entry

Expected behavior
A clear and concise description of what you expected to happen.

iPhone (please complete the following information):

  • Device: iPhone 8
  • OS: 12.1
  • Version: 3.0.0
@dks333
Copy link

dks333 commented Nov 10, 2019

Same Issue

@JhonnyTawk
Copy link

same issue.
I want to add Load more feature.
What is the alternative of self.swipeMenuView.reloadData() to reload TableView without reloading Tiltes and everything?

@hiromiick
Copy link

hiromiick commented Dec 4, 2019

I had same issue, and could fix it. In my case, I was using SwipeMenuViewOptions. I init SwipeMenuView without options, create options, and did self.swipeMenuView.reloadData(options: options), so everything was called twice. I init SwipeMenuView with options at the first time, then all problem was solved.

hope it would help.

@AjayOdedara
Copy link

Same issue guys,

@hiromiick I tried to resolve with what you suggested but still getting 2 calls

@Arshad-iOSDeveloper
Copy link

Same issue for me, any solution please ?

@Arshad-iOSDeveloper
Copy link

I had same issue, and could fix it. In my case, I was using SwipeMenuViewOptions. I init SwipeMenuView without options, create options, and did self.swipeMenuView.reloadData(options: options), so everything was called twice. I init SwipeMenuView with options at the first time, then all problem was solved.

hope it would help.

Its always better to paste the code

@Arshad-iOSDeveloper
Copy link

The problem is not with the options, it is related to reload() method.
Even i am not able to solve the problem.
So thinking to remove this library and use horizontal collection view for tabs

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

6 participants