ASContextTransitioning Protocol Reference

Conforms to NSObject
Declared in ASContextTransitioning.h

– isAnimated required method

Defines if the given transition is animated

- (BOOL)isAnimated

Declared In

ASContextTransitioning.h

– layoutForKey: required method

Retrieve either the “from” or “to” layout

- (nullable ASLayout *)layoutForKey:(NSString *)key

Declared In

ASContextTransitioning.h

– constrainedSizeForKey: required method

Retrieve either the “from” or “to” constrainedSize

- (ASSizeRange)constrainedSizeForKey:(NSString *)key

Declared In

ASContextTransitioning.h

– subnodesForKey: required method

Retrieve the subnodes from either the “from” or “to” layout

- (NSArray<ASDisplayNode*> *)subnodesForKey:(NSString *)key

Declared In

ASContextTransitioning.h

– insertedSubnodes required method

Subnodes that have been inserted in the layout transition

- (NSArray<ASDisplayNode*> *)insertedSubnodes

Declared In

ASContextTransitioning.h

– removedSubnodes required method

Subnodes that will be removed in the layout transition

- (NSArray<ASDisplayNode*> *)removedSubnodes

Declared In

ASContextTransitioning.h

– initialFrameForNode: required method

The frame for the given node before the transition began.

- (CGRect)initialFrameForNode:(ASDisplayNode *)node

Discussion

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 *)node

Discussion

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)didComplete

Discussion

Passing NO to didComplete will set the original layout as the new layout.

Declared In

ASContextTransitioning.h