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 iOS 13 UITableViewAlertForLayoutOutsideViewHierarchy warning #2076
Fix iOS 13 UITableViewAlertForLayoutOutsideViewHierarchy warning #2076
Conversation
Any idea when this will be merged and released? |
@freak4pc Asked for Bumps on PRs that we find useful, so bumping here. Some of us really do like to keep our console logs clean of warnings so when problems really do occur we can notice them. I'd love to see this fix put in. Bug fixes are the best! |
This seems like a good fix. @ronzohan mind rebasing on top of develop and adding a CHANGELOG entry? |
…the view heirarchy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased and added a CHANGELOG entry for you. Thanks for your first contribution!
Is there a reason why this change neither made it to |
Probably accidental, we need to cherry-pick it into |
I've cherry-picked this and it will be out on the next release, whichever that would be :) |
Great! Thank you 😃 |
I tried to use this method to test it with Xcode 11.5, iOS 13.5 Simulator. If you bind to viewDidLoad, you will still get the same warning when loading the page for the first time, |
@ameue I just tried it on a branch and I'm not getting the warning as you do. (I linked my app to the Do you have a repro? |
I try again, it works. |
Just wanted to update, I'm performing the following steps and still seeing the error from RxSwiftCommunity/RxDataSources#331 Using:
Steps:
I'm still seeing the See this repo for a sample |
Just wanted to comment to make sure there's still attention brought to this issue. I'm still seeing it as of Swift 5.3 and RxSwift 5.0.1 Please reopen the related issue #2093 since this is still an issue. This can cause serious issues with layout, especially when not using storyboards |
Hi @MatrixSenpai , I believe this fix is not merged on RxSwift 5.0.1 but onto the next release version which would be on 6.0.0. You can try to use the 6.0.0 release candidate 6.0.0-rc.1 branch or the develop branch which contains the fix As @freak4pc said,
|
Will check out, ty for update |
Fixes
UITableViewAlertForLayoutOutsideViewHierarchy
warning on iOS 13 by checking iflayoutIfNeeded()
needs to be called by performing a check if theobject
is currently attached to a window.