
Loading Card
From syxUI — written for both platforms, not translated between them.
A centered loading card with a spinner.
Loaders · SwiftUI · iOS 17
- loaders
- swiftui
The actual source
LoadingCard.swift
// Loading Card · syxUI · https://syxui.dev/components/loader-card
// 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)
extension View {
func formaCard(_ pad: CGFloat = 18) -> some View {
self.padding(pad)
.background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 20, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: 20, style: .continuous).stroke(Color.primary.opacity(0.06), lineWidth: 1))
.shadow(color: .black.opacity(0.05), radius: 14, x: 0, y: 6)
}
}
struct LoadingCard: View { var body: some View { VStack(spacing: 14) { Circle().trim(from: 0, to: 0.7).stroke(ldBlue, style: StrokeStyle(lineWidth: 3.5, lineCap: .round)).frame(width: 36, height: 36); Text("Loading content…").font(.system(size: 14, weight: .medium)).foregroundStyle(.secondary) }.padding(.vertical, 22).frame(maxWidth: .infinity).formaCard().frame(width: 240) } }
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


