Skip to content

Make sure to remove old content controller before trigging didMoveToParent #17

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

Merged
merged 1 commit into from
Dec 22, 2021

Conversation

sirnacnud
Copy link
Contributor

This change fixes the issue of when accessing the children of the container view controller in didMove(toParent), only the new content controller is a child. Previously there was two children, the first the old and the second the new one.

@tschob
Copy link
Owner

tschob commented Dec 22, 2021

Thanks @sirnacnud. I did not validate the bug scenario which you described, but the change looks reasonable and I tested that the example app still behaves as it should. I will merge it and create a hotfix release.

@tschob tschob merged commit 815c131 into tschob:master Dec 22, 2021
@sirnacnud sirnacnud deleted the move-to-parent branch December 22, 2021 12:42
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.

2 participants