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

Store backgroundColor in ASDisplayNode #1640

Merged
merged 3 commits into from
Aug 27, 2019

Conversation

rahul-malik
Copy link
Contributor

We need this to preserve dynamic color capabilities for layer-backed
nodes. In layer backed nodes we lose the dynamic color logic since we
extract a CGColor from the UIColor applied to ASDisplayNode. With this
change we can respond to changes in UITraitCollection.userInterfaceStyle
for backgroundColor on layer backed nodes

We need this to preserve dynamic color capabilities for layer-backed
nodes. In layer backed nodes we lose the dynamic color logic since we
extract a CGColor from the UIColor applied to ASDisplayNode. With this
change we can respond to changes in UITraitCollection.userInterfaceStyle
for backgroundColor on layer backed nodes
Copy link
Contributor

@bolsinga bolsinga left a comment

Choose a reason for hiding this comment

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

just some nits.

Source/ASDisplayNode.mm Outdated Show resolved Hide resolved
Source/Private/ASDisplayNode+UIViewBridge.mm Outdated Show resolved Hide resolved
@rahul-malik rahul-malik merged commit bda0a5b into master Aug 27, 2019
@rahul-malik rahul-malik deleted the rmalik/bgcolor-tintcolor-update branch August 27, 2019 00:59
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.

None yet

2 participants