Progress Bar

Represents a Material UI styled progress indicator for showing ongoing processes or loading states.

Overview

The ProgressBar represents a Material UI-styled progress indicator, designed to provide a visual cue of ongoing activity. It features a rotating arc that animates to indicate progress or loading states.

To use the ProgressBar, initialize it with optional parameters for line width. By default, the progress bar uses a standard line width of 2 points. You can customize the line width by providing a specific value.

Initializer

Creates a progress view with the default line width (of 2 points).

ProgressBar()

Creates a progress view with a custom line width.

ProgressBar(lineWidth: CGFloat)

Parameter

Parameter
Description

lineWidth

Sets the stroke width of the progress view.

Example

Displays a ProgressBar with the default line width of 2 points.

ProgressBar()

Displays a ProgressBar with a custom line width.

ProgressBar(lineWidth: 5)

Last updated