Contents

addCoordinatedAnimations(_:completion:)

Adds animations to perform alongside the playback controls’ visibility animation.

Declaration

func addCoordinatedAnimations(_ animations: (() -> Void)?, completion: (@Sendable (Bool) -> Void)? = nil)
func addCoordinatedAnimations(_ animations: (() -> Void)?) async -> Bool

Parameters

  • animations:

    The animations to execute.

  • completion:

    A closure to execute after the main animation completes. The system runs the specified animations in the same animation context as the main animation.