ASContextTransitioning Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | ASContextTransitioning.h |
– isAnimated
required method
Defines if the given transition is animated
- (BOOL)isAnimatedDeclared In
ASContextTransitioning.h
– layoutForKey:
required method
Retrieve either the “from” or “to” layout
- (nullable ASLayout *)layoutForKey:(NSString *)keyDeclared In
ASContextTransitioning.h
– constrainedSizeForKey:
required method
Retrieve either the “from” or “to” constrainedSize
- (ASSizeRange)constrainedSizeForKey:(NSString *)keyDeclared In
ASContextTransitioning.h
– subnodesForKey:
required method
Retrieve the subnodes from either the “from” or “to” layout
- (NSArray<ASDisplayNode*> *)subnodesForKey:(NSString *)keyDeclared In
ASContextTransitioning.h
– insertedSubnodes
required method
Subnodes that have been inserted in the layout transition
- (NSArray<ASDisplayNode*> *)insertedSubnodesDeclared In
ASContextTransitioning.h
– removedSubnodes
required method
Subnodes that will be removed in the layout transition
- (NSArray<ASDisplayNode*> *)removedSubnodesDeclared In
ASContextTransitioning.h
– initialFrameForNode:
required method
The frame for the given node before the transition began.
- (CGRect)initialFrameForNode:(ASDisplayNode *)nodeDiscussion
Returns CGRectNull if the node was not in the hierarchy before the transition.
Declared In
ASContextTransitioning.h
– finalFrameForNode:
required method
The frame for the given node when the transition completes.
- (CGRect)finalFrameForNode:(ASDisplayNode *)nodeDiscussion
Returns CGRectNull if the node is no longer in the hierarchy after the transition.
Declared In
ASContextTransitioning.h
– completeTransition:
required method
Invoke this method when the transition is completed in animateLayoutTransition:
- (void)completeTransition:(BOOL)didCompleteDiscussion
Passing NO to didComplete will set the original layout as the new layout.
Declared In
ASContextTransitioning.h