mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-08 21:49:41 +00:00
This reverts commit 2804d50220dabebc62b088b17d5ffe2347da1e36.
This commit is contained in:
parent
893e601e81
commit
49b65fd783
@ -789,12 +789,9 @@ static ASDisplayNodeMethodOverrides GetASDisplayNodeMethodOverrides(Class c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Setup pending layout transition for animation
|
// Setup pending layout transition for animation
|
||||||
// The pending layout transition needs to stay alive at least until applySubnodeInsertions did finish execute as
|
_pendingLayoutTransition = [[ASLayoutTransition alloc] initWithNode:self
|
||||||
// it can happen that with Implicit Hierarchy Management new nodes gonna be added that internally call setNeedsLayout
|
pendingLayout:newLayout
|
||||||
// what will invalidate and deallocate the transition in the middle of inserting nodes
|
previousLayout:previousLayout];
|
||||||
NS_VALID_UNTIL_END_OF_SCOPE ASLayoutTransition *pendingLayoutTransition = [[ASLayoutTransition alloc] initWithNode:self pendingLayout:newLayout previousLayout:previousLayout];
|
|
||||||
_pendingLayoutTransition = pendingLayoutTransition;
|
|
||||||
|
|
||||||
// Setup context for pending layout transition. we need to hold a strong reference to the context
|
// Setup context for pending layout transition. we need to hold a strong reference to the context
|
||||||
_pendingLayoutTransitionContext = [[_ASTransitionContext alloc] initWithAnimation:animated
|
_pendingLayoutTransitionContext = [[_ASTransitionContext alloc] initWithAnimation:animated
|
||||||
layoutDelegate:_pendingLayoutTransition
|
layoutDelegate:_pendingLayoutTransition
|
||||||
|
Loading…
x
Reference in New Issue
Block a user