Skip to content

Conversation

@vovasty
Copy link
Contributor

@vovasty vovasty commented Oct 1, 2019

This fixes problem with snapshot testing: when color is dynamic and node is not layer backed, background color remains the same.

}
} else {
// we set view and layer background color in _ASPendingState, so do the same here
if (!CGColorEqualToColor(_layer.backgroundColor, cgBackgroundColor)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to move the color equality test up, so that the code doesn't have to be here twice?

@vovasty vovasty force-pushed the vlad/ASDisplayNode-background branch from ac607c4 to ed629d2 Compare October 1, 2019 18:49
@vovasty vovasty force-pushed the vlad/ASDisplayNode-background branch from ed629d2 to 287747c Compare October 8, 2019 22:35
@vovasty vovasty merged commit 6baf29a into TextureGroup:master Oct 8, 2019
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.

3 participants