-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 main thread assertion for tint color on text nodes, re-render tint-able nodes on hierarchy changes #1670
Conversation
218d694
to
9c95d2f
Compare
- Avoid accessing `self.tintColor` off-main since this will trigger an assertion and might be undefined behavior - Trigger setNeedsDisplay in cases of hierarchy change and tintColorDidChange in ASButtonNode, ASTextNode{1,2} - Fix bug in _ASTableViewCell where we were overwriting the tint color instead of inheriting the correct value - Add tests for new logic in changing hierarchy
9c95d2f
to
ce8c59f
Compare
@bolsinga - PTAL, this should be good to land now |
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.
This all looks reasonable; I assume the added tests will fail without the code changes? Also please be sure to update the main title; this is not only about text node tint color.
Will definitely update the title / commit message. I did verify the tests fail without these changes |
Thanks for confirming! |
self.tintColor
off-main since this will trigger anassertion and might be undefined behavior
tintColorDidChange in ASButtonNode, ASTextNode{1,2}
systemBlueColor
if it is unable to be determined