Feedback/DSSpinner

DSSpinner

feedback
since v1.0

Circular 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.

Props

PropTypeDefaultDescription
sizeDSButtonSize.mdSpinner size (.sm, .md, .lg).
colorColorDSColor.primarySpinner colour.

Examples

Full-screen loading

Center spinner while data loads.

swift
if viewModel.isLoading {
    VStack {
        Spacer()
        DSSpinner(size: .lg)
        Spacer()
    }
}

Related Components