Parameters
Progress configuration.
A view that shows the completion progress of a task.
ProgressView(props?: { value: number, total?: number }): Component;
ProgressView()
ProgressView({ value: 0.6 })
ProgressView({ value: 75, total: 100 })
VStack({ spacing: 8 }, [
HStack([
Text("Download Progress"),
Spacer(),
Text("60%")
]),
ProgressView({ value: 0.6 })
])
ProgressView({ value: 0.4 })
.progressViewStyle("linear")
.accentColor(Color("green"))
.scaleEffect({ y: 2 })
VStack({ spacing: 20 }, [
Text("Loading...")
.font("title2")
.bold(),
ProgressView({ value: loadingProgress })
.frame({ width: 200 }),
Text(`${Math.round(loadingProgress * 100)}% complete`)
.font("caption")
.foregroundStyle(Color("gray"))
])