Instance Method

addCoordinatedAnimations(_:completion:)

Adds animations to be performed alongside the playback controls' visibility animation.

Required.

Declaration

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

Parameters

animations

The animations to be run.

completion

A block object to be executed after the main animation completes. Any animations specified are run in the same animation context as the main animation.