xmartlabs / XLPagerTabStrip

Android PagerTabStrip for iOS.
MIT License
6.98k stars 1.33k forks source link

moveToViewController does not change the page if created + not visible + animated = false until it become visible #746

Open bivant opened 5 years ago

bivant commented 5 years ago

Skip visibility check (view.window != nil) if non animated viewController change was requested.

User case: a ButtonBarPagerTabStripViewController is not navigationController.topViewController (but was visible so viewDidLoad had been called), moveToViewController(at: 1, animated: false) was called prior to the screen show (popViewController) Expected behavior: a controller is shown with selected tab on screen/controller show Current behavior: a controller change animation starts after the navigation animation is completed.