38.4 Using the Circular ProgressView Style
To display a circular ProgressView, the progressViewStyle() modifier needs to be called and passed an instance of CircularProgressViewStyle as follows:
struct ContentView: View {
@State private var progress: Double = 1.0
var body: some View {
VStack {
ProgressView("Task Progress", value: progress, total: 100)
.progressViewStyle(CircularProgressViewStyle())
Slider(value: $progress, in: 1...100, step: 0.1)
}
.padding...