Instance Method


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


func addCoordinatedUnfocusingAnimations(_ animations: ((UIFocusAnimationContext) -> Void)?, completion: (() -> Void)? = nil)



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


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


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


When focus is being removed from 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

func addCoordinatedFocusingAnimations(((UIFocusAnimationContext) -> Void)?, completion: (() -> Void)?)

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

func addCoordinatedAnimations((() -> Void)?, completion: (() -> Void)?)

Specifies the animations to coordinate with the active focus animation.

protocol UIFocusAnimationContext

Information about focusing animations being performed by the system.