---
title: "addCoordinatedAnimations(_:completion:)"
framework: avkit
role: symbol
role_heading: Instance Method
path: "avkit/avplayerviewcontrolleranimationcoordinator/addcoordinatedanimations(_:completion:)"
---

# addCoordinatedAnimations(_:completion:)

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

## Declaration

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

```swift
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.
