Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

[ASImageNode] Copy ASTextNode’s implementation of placeholderImage into ASImageNode in order to fix usage of ASImageNode.placeholderColor (#2865)#2866

Merged
Adlai-Holler merged 1 commit intofacebookarchive:masterfrom
master-nevi:dr/fix-imagenode-placeholder-color
Jan 5, 2017
Merged

[ASImageNode] Copy ASTextNode’s implementation of placeholderImage into ASImageNode in order to fix usage of ASImageNode.placeholderColor (#2865)#2866
Adlai-Holler merged 1 commit intofacebookarchive:masterfrom
master-nevi:dr/fix-imagenode-placeholder-color

Conversation

@master-nevi
Copy link
Copy Markdown
Contributor

@master-nevi master-nevi commented Jan 5, 2017

Implementation copied from ASTextNode: https://github.com/facebook/AsyncDisplayKit/blob/f637392a770ae193c41b7aadd9a01b49b335d9d3/AsyncDisplayKit/ASTextNode.mm#L849

Addresses: #2865

Also updates the Kitten sample project to demonstrate the placeholderColor/placeholderFadeDuration APIs.

… in order to fix the usage of placeholderColor.
@master-nevi master-nevi changed the title Copy ASTextNode’s implementation of placeholderImage into ASImageNode [ASImageNode] Copy ASTextNode’s implementation of placeholderImage into ASImageNode Jan 5, 2017
@master-nevi master-nevi changed the title [ASImageNode] Copy ASTextNode’s implementation of placeholderImage into ASImageNode [ASImageNode] Copy ASTextNode’s implementation of placeholderImage into ASImageNode in order to fix usage of ASImageNode.placeholderColor Jan 5, 2017
@master-nevi master-nevi changed the title [ASImageNode] Copy ASTextNode’s implementation of placeholderImage into ASImageNode in order to fix usage of ASImageNode.placeholderColor [ASImageNode] Copy ASTextNode’s implementation of placeholderImage into ASImageNode in order to fix usage of ASImageNode.placeholderColor (#2865) Jan 5, 2017
Copy link
Copy Markdown
Contributor

@Adlai-Holler Adlai-Holler left a comment

Choose a reason for hiding this comment

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

Wow this is fascinating! The placeholder system was added in bf01b07 in 2014, and ASImageNode.placeholderColor was never ever used in any way! Glad to see this code finally made it into the framework.

In the future, we could elevate the placeholderColor into ASDisplayNode and provide this as a default implementation of placeholderImage.

@Adlai-Holler
Copy link
Copy Markdown
Contributor

Thanks @master-nevi

@Adlai-Holler Adlai-Holler merged commit 2bc701d into facebookarchive:master Jan 5, 2017
@master-nevi
Copy link
Copy Markdown
Contributor Author

@Adlai-Holler you're very welcome. Glad I could contribute.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants