ProgressIndicator

public struct ProgressIndicator
extension ProgressIndicator: View
extension ProgressIndicator: _ViewEmptyChecking

ProgressIndicator provides a circular progress indicator with custom styles for processing, pausable, and stoppable indicators.

Usage

@State var progress: Double = 0.0
@State var isPaused: Bool = false

ProgressIndicator(progress: $progress)
   .progressIndicatorStyle(.processing)
ProgressIndicator(progress: $progress)
    .progressIndicatorStyle(ProgressIndicatorPausableStyle(isPaused: self.$isPaused))