-
Notifications
You must be signed in to change notification settings - Fork 449
Default page not working properly when lazy loading three pages? #339
Comments
I managed to work around this by adding a protocol for hiding the |
This seemed to be a life cycle issue. Calling the setup of the |
@kitasuke I have the same issue and am also using four view controllers, except I left the The problem is the When I swipe to the right during this inconsistency, the menu item changes to the fourth view controller's title, but the view controller itself doesn't move at all, so afterwards, the fourth view controller is shown with its menu title, and it continues to work properly after that. But if I instead swipe to the left, then the opposite happens, the view controller changes to the first view controller, and the menu item doesn't change at all, so afterwards, the first view controller is shown with its menu title, and it continues to work properly after that. |
@kitasuke I'm also finding that no matter what I set the |
I'm finding the issue is in this method:
The frame of the Doesn't matter whether I setup the |
Expected behavior and actual behavior
I expect that when using
defaultPage
that the corresponding page always loads first without the interference of neighbouring pages (on either left or right side). The current behaviour (when loading page index 2 of 3) is that the fourth page (with index 3) is first loaded and then it jumps back to the page with index 2; it should always stay on index 2.Steps to reproduce the problem
Create a PagingMenuController with four
pagingControllers
that loads some data into their views, then setdefaultPage=2
. If you see that the menu item which corresponds to the fourth page is shown before the menu item of the third page, you have reproduced it.Specifications like the version of the project, library, or Swift
PagingMenuController version 2.2 and Swift version 3.0.2
EDIT: I use the following
PagingMenuControllerCustomizable
properties:I have tried to "hack" some custom solution for it, but I always seem to end up very briefly showing the fourth page.
The text was updated successfully, but these errors were encountered: