Contents

progressViewStyle(_:)

Sets the style for progress views in this view.

Declaration

nonisolated func progressViewStyle<S>(_ style: S) -> some View where S : ProgressViewStyle

Parameters

  • style:

    The progress view style to use for this view.

Discussion

For example, the following code creates a progress view that uses the “circular” style:

ProgressView()
    .progressViewStyle(.circular)

See Also

Indicating a value