-
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 pager node for interface coalescing #877
Fix pager node for interface coalescing #877
Conversation
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 diff looks fine, thanks for fixing! Just two typos and then we'll merge this one.
Source/ASDisplayNode+Subclasses.h
Outdated
@@ -362,6 +362,12 @@ NS_ASSUME_NONNULL_BEGIN | |||
*/ | |||
- (void)didExitHierarchy ASDISPLAYNODE_REQUIRES_SUPER; | |||
|
|||
/** | |||
* Called just after the view is added to a window. | |||
* Note: this may be called multiple times during view controller transitions. To overcome this: use didEnterVisibleState or it's equavalents. |
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.
nit: or its equivalents
, no apostrophe
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.
Done
Source/ASDisplayNode.mm
Outdated
@@ -2996,6 +2998,14 @@ - (void)willEnterHierarchy | |||
} | |||
} | |||
|
|||
- (void)didEnterHierarchy { | |||
ASDisplayNodeAssertMainThread(); | |||
ASDisplayNodeAssert(!_flags.isEnteringHierarchy, @"You should never call -willEnterHierarchy directly. Appearance is automatically managed by ASDisplayNode"); |
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.
Update. comment You should never call -didEnterHierarchy
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.
Done, thanks.
(Sorry Max) One more thing, could you add a line to the changelog describing the fix? |
Done, sorry keep forgetting that :). |
@wsdwsd0829 I think you accidentally closed the PR - reopening :) |
On Thu, May 17, 2018 at 7:36 PM Michael Schneider ***@***.***> wrote:
Reopened #877 <#877>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#877 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFFq5HNLsnzOTl36LBLk-ihnTkJnsMuCks5tzjOngaJpZM4TNqGn>
.
Oops thanks
… |
This suppose to fix #845 from interface coalescing point of view.