Link Search Menu Expand Document

FocusAnimationCoordinator

A coordinator of focus-related animations during a focus update.

public class FocusAnimationCoordinator 

Methods

addCoordinatedFocusingAnimations(_:completion:)

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

public func addCoordinatedFocusingAnimations(_ animations: ((FocusAnimationContext) -> Void)?,
                                               completion: (() -> Void)? = nil) 

addCoordinatedUnfocusingAnimations(_:completion:)

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

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

addCoordinatedAnimations(_:completion:)

Specifies the animations to coordinate with the active focus animation.

public func addCoordinatedAnimations(_ animations: (() -> Void)?,
                                       completion: (() -> Void)? = nil)