Skip to content

Conversation

bivant
Copy link

@bivant bivant commented Aug 13, 2019

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.

bivant added 3 commits August 26, 2019 22:03
…if the moveTo/moveToViewController was requested prior to the viewDidLoad() -> viewDidLayoutSubviews()
…ow (was always first one) if the moveTo/moveToViewController was requested prior to the viewDidLoad() -> viewDidLayoutSubviews()
Copy link

@sprite2005 sprite2005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes will allow you to select the starting page.

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

Successfully merging this pull request may close these issues.

3 participants