Contents

setProgress(_:animated:)

Adjusts the current progress of the progress view, optionally animating the change.

Declaration

func setProgress(_ progress: Float, animated: Bool)

Parameters

  • progress:

    The new progress value.

  • animated:

    True if the change should be animated, False if the change should happen immediately.

Discussion

The current progress is represented by a floating-point value between 0.0 and 1.0, inclusive, where 1.0 indicates the completion of the task. The default value is 0.0. Values less than 0.0 and greater than 1.0 are pinned to those limits.

See Also

Managing the progress bar