Instance Method

addCoordinatedFocusingAnimations:completion:

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

Declaration

- (void)addCoordinatedFocusingAnimations:(void (^)(id<UIFocusAnimationContext> animationContext))animations completion:(void (^)(void))completion;

Parameters

animations

A block object containing your focus-related animations. This block has no return value and takes the following parameter:

context

An object containing information about the main animations. Use this information to configure your custom animations. For more information, see UIFocusAnimationContext.

completion

The block object to execute after the main animations completes. The specified animations are run in the same animation context as the main animation.

Discussion

When focus is being added to an item, use this method to coordinate your custom animations with the system animations. The animations you specify are run in the same animation block as the system animations. Use the information in the context parameter to determine any custom behaviors for your animations. For example, you might configure your animations to run in half the time as the main animation and start after a short delay.

See Also

Adding Animations to Focus Updates

- addCoordinatedUnfocusingAnimations:completion:

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

- addCoordinatedAnimations:completion:

Specifies the animations to coordinate with the active focus animation.

UIFocusAnimationContext

Information about focusing animations being performed by the system.