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

fix: change update logic #600

Merged
merged 2 commits into from Aug 18, 2020
Merged

fix: change update logic #600

merged 2 commits into from Aug 18, 2020

Conversation

WoLewicki
Copy link
Member

@WoLewicki WoLewicki commented Aug 12, 2020

Suggested by @kmagiera change that should resolve #432.
We wait with adding to the parent controller until the stack is mounted and has its initial layout done. If we add it before layout, some of the items (specifically items from the navigation bar), won't be able to position properly. Also, the position and size of such items, even if it happens to change, won't be properly updated (this is perhaps some internal issue of UIKit). If we add it when the window is not attached, some of the view transitions will be blocked (i.e. modal transitions) and the internal view controller's state will get out of sync with what's on-screen without us knowing.

@WoLewicki WoLewicki marked this pull request as ready for review August 17, 2020 14:16
@WoLewicki WoLewicki merged commit 858c01e into master Aug 18, 2020
@WoLewicki WoLewicki deleted the @wolewicki/change-update-logic branch August 18, 2020 09:32
@FrankFundel
Copy link

When using this, the header is completely missing on first load. After I switch tabs the header appears.

@WoLewicki
Copy link
Member Author

@FrankFundel we are aware that this solution is not the best one and are working on finding a better one. Meanwhile, can you share a repo with the bug you mentioned? It would help us find all the existing issues.

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.

headerRight randomly position the component incorrectly
3 participants