Change applySubnodeTransition to startTransition

This commit is contained in:
Michael Schneider
2016-07-03 14:38:26 -07:00
parent bf6fbd173d
commit 9de014f179
3 changed files with 5 additions and 5 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -77,7 +77,7 @@ static inline BOOL ASLayoutCanTransitionAsynchronous(ASLayout *layout) {
return ASLayoutCanTransitionAsynchronous(_pendingLayout);
}
- (void)applySubnodeTransition
- (void)startTransition
{
[self applySubnodeInsertions];
[self applySubnodeRemovals];