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

calling .scrollToPage(.at(index: 1), animated: true) when called from view will appear will scroll passed the 1 index #263

Open
austin-keith-vigo opened this issue May 19, 2021 · 1 comment

Comments

@austin-keith-vigo
Copy link

Issue:
I have a PageBoyViewController set up to handle 2 other view controllers. From a different controller I am trying to navigate to the second viewController of the PageBoyViewController. When I navigate to the PageBoyViewController and switch indexes on viewWillAppear it go passed the intended index. Also, this issue only seems to appear on an iPhone 8 which is running version 12.4.

To Replicate:

  • Have a PageBoyViewController as a tab on a tabBarController.
  • On the PageBoyViewController, navigate to the first index
  • Navigate to a different ViewController
  • From that ViewController switch to the PageBoyViewController
  • In the viewWillAppear of the PageBoyViewController navigate to the second index
@austin-keith-vigo austin-keith-vigo changed the title calling .scrollToPage(.at(index: 1), animated: true) when the view controller is not in view will scroll passed the 1 index calling .scrollToPage(.at(index: 1), animated: true) when called from view will appear will scroll passed the 1 index May 19, 2021
@adeds
Copy link

adeds commented Nov 3, 2022

it happened to me too, in my case is iPhone 5s ios v12.4

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

No branches or pull requests

2 participants