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

[ASDisplayNode] Placeholders should always be recreated if returning to cleared nodes. - #1398

Merged
appleguy merged 1 commit into
masterfrom
Placeholders
Mar 20, 2016
Merged

[ASDisplayNode] Placeholders should always be recreated if returning to cleared nodes.#1398
appleguy merged 1 commit into
masterfrom
Placeholders

Conversation

@appleguy

Copy link
Copy Markdown
Contributor

If previously-displayed contents is gone (e.g. clearContents), and is not finished displaying
by the time the node is onscreen, recreate the placeholder immediately.

…to past nodes.

If previously-displayed contents is gone (e.g. clearContents), and is not finished displaying
by the time the node is onscreen, recreate the placeholder immediately.
@appleguy

Copy link
Copy Markdown
Contributor Author

@maicki @garrettmoon (ASImageNode changes) @nguyenhuy it would be great to have a review from one or two of you. Until then, I am going to go ahead and land this, so that I can get increased test coverage over the weekend as I continue to do development on other branches that I would like to rebase with this change.

appleguy added a commit that referenced this pull request Mar 20, 2016
[ASDisplayNode] Placeholders should always be recreated if returning to cleared nodes, and remain until ASNetwork/MultiplexImageNode finish loading their image from the network.
@appleguy
appleguy merged commit 4297cb1 into master Mar 20, 2016
@appleguy

Copy link
Copy Markdown
Contributor Author

cc @Adlai-Holler regarding the change for multiplex. Note that placeholder fading out now works reliably as well.

@appleguy
appleguy deleted the Placeholders branch March 20, 2016 04:19
[CATransaction begin];
[CATransaction setDisableActions:YES];
[self _setupPlaceholderLayerIfNeeded];
_placeholderLayer.opacity = 1.0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are we sure that the placeholder is always opaque?

@maicki

maicki commented Mar 20, 2016

Copy link
Copy Markdown
Contributor

@appleguy Added one small comment but LGTM

@Adlai-Holler

Copy link
Copy Markdown
Contributor

Love this! Nice @appleguy!

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.

4 participants