mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-28 23:58:50 +08:00
Change applySubnodeTransition to startTransition
This commit is contained in:
@@ -2449,13 +2449,13 @@ void recursivelyTriggerDisplayForLayer(CALayer *layer, BOOL shouldBlock)
|
||||
|
||||
// Subnode insertions and removals need to happen always on the main thread if at least one subnode is already loaded
|
||||
ASPerformBlockOnMainThread(^{
|
||||
[layoutTransition applySubnodeTransition];
|
||||
[layoutTransition startTransition];
|
||||
});
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
[layoutTransition applySubnodeTransition];
|
||||
[layoutTransition startTransition];
|
||||
}
|
||||
|
||||
- (void)layout
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
/**
|
||||
* Returns if the layout transition can happen asynchronously
|
||||
*/
|
||||
@property (nonatomic, readonly, assign, getter=isSynchronous) BOOL synchronous;
|
||||
@property (nonatomic, readonly, assign) BOOL isSynchronous;
|
||||
|
||||
/**
|
||||
* Returns a newly initialized layout transition
|
||||
@@ -47,7 +47,7 @@
|
||||
/**
|
||||
* Insert and remove subnodes that where added or removed between the previousLayout and the pendingLayout
|
||||
*/
|
||||
- (void)applySubnodeTransition;
|
||||
- (void)startTransition;
|
||||
|
||||
/**
|
||||
* Insert all new subnodes that where added between the previous layout and the pending layout
|
||||
|
||||
@@ -77,7 +77,7 @@ static inline BOOL ASLayoutCanTransitionAsynchronous(ASLayout *layout) {
|
||||
return ASLayoutCanTransitionAsynchronous(_pendingLayout);
|
||||
}
|
||||
|
||||
- (void)applySubnodeTransition
|
||||
- (void)startTransition
|
||||
{
|
||||
[self applySubnodeInsertions];
|
||||
[self applySubnodeRemovals];
|
||||
|
||||
Reference in New Issue
Block a user