Instance Method

addCoordinatedAnimations:completion:

Specifies the animations to coordinate with the active focus animation.

Declaration

- (void)addCoordinatedAnimations:(void (^)(void))animations completion:(void (^)(void))completion;

Parameters

animations

The animation to be run.

completion

A block object to be executed after the main animation completes. Any animations specified are run in the same animation context as the main animation.

Discussion

Use this method to coordinate your custom animations with the system animations for adding or removing focus.

Unless the duration time is inherited, the specified animations may not run in the same context as the main animation. It is perfectly legitimate to specify only a completion block.

See Also

Adding Animations to Focus Updates

- addCoordinatedFocusingAnimations:completion:

Runs the specified set of animations together with the system animations for adding focus to an item.

- addCoordinatedUnfocusingAnimations:completion:

Runs the specified set of animations together with the system animations for removing focus from an item.

UIFocusAnimationContext

Information about focusing animations being performed by the system.