Feedback/DSSpinner
DSSpinner
feedbackCircular indeterminate loading indicator with 3 sizes and a colour token.
iOS 17+macOS 14+watchOS 10+
Purpose
Loading states for async operations where progress cannot be quantified.
Interactive Reference
Live showroom
Need the full visual surface?
Screenshots do not scale well across every component, state, and variant. For the real interactive reference, import the package and launch DSShowcaseRoot().
Best for exploring:
variants, states, categories, and real app examples in one place.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | DSButtonSize | .md | Spinner size (.sm, .md, .lg). |
| color | Color | DSColor.primary | Spinner colour. |
Examples
Full-screen loading
Center spinner while data loads.
swift
if viewModel.isLoading {
VStack {
Spacer()
DSSpinner(size: .lg)
Spacer()
}
}