Contents

setVolume(_:fadeDuration:)

Changes the audio player’s volume over a duration of time.

Declaration

func setVolume(_ volume: Float, fadeDuration duration: TimeInterval)

Parameters

  • volume:

    The target volume.

  • duration:

    The duration, in seconds, over which to fade the volume.

See Also

Configuring playback settings