
Spinner
From syxUI — written for both platforms, not translated between them.
Circular spinners in two sizes.
Loaders · SwiftUI · iOS 17
- loaders
- swiftui
The actual source
SpinnerLoader.swift
// Spinner · syxUI · https://syxui.dev/components/loader-spinner
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
let ldBlue = Color(red: 0.0, green: 0.47, blue: 1.0)
struct SpinnerLoader: View { var body: some View { HStack(spacing: 28) { Circle().trim(from: 0, to: 0.75).stroke(ldBlue, style: StrokeStyle(lineWidth: 4, lineCap: .round)).frame(width: 44, height: 44).rotationEffect(.degrees(-40)); Circle().trim(from: 0, to: 0.75).stroke(Color.primary.opacity(0.25), style: StrokeStyle(lineWidth: 3, lineCap: .round)).frame(width: 28, height: 28).rotationEffect(.degrees(120)) } } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


