Feedback/DSProgressBar
DSProgressBar
feedbackLinear progress indicator with an optional label and percentage display. Supports indeterminate (loading) mode.
iOS 17+macOS 14+watchOS 10+
Purpose
Task completion, upload progress, onboarding steps, and loading states.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| valuereq | Double | โ | Progress from 0.0 to 1.0. |
| label | String? | nil | Label above the bar. |
| showPercentage | Bool | false | Shows percentage on the right. |
| tint | Color | DSColor.primary | Bar fill colour. |
| isIndeterminate | Bool | false | Looping animation mode. |
Examples
File upload progress
Progress bar that updates as a file uploads.
swift
DSProgressBar(
value: uploadProgress,
label: "Uploading...",
showPercentage: true,
tint: DSColor.primary
)