
Progress Toast
From syxUI — written for both platforms, not translated between them.
An upload-progress toast.
Banners · SwiftUI · iOS 17
- banners
- swiftui
The actual source
ProgressToast.swift
// Progress Toast · syxUI · https://syxui.dev/components/bt-progress
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
// Upload progress toast
struct ProgressToast: View {
var body: some View {
VStack(alignment: .leading, spacing: 10) {
HStack(spacing: 12) { Image(systemName: "arrow.up.circle").font(.system(size: 18)).foregroundStyle(.white); Text("Uploading 3 files…").font(.system(size: 14, weight: .medium)).foregroundStyle(.white); Spacer(); Text("68%").font(.system(size: 13)).foregroundStyle(.white.opacity(0.7)) }
GeometryReader { g in ZStack(alignment: .leading) { Capsule().fill(.white.opacity(0.2)).frame(height: 4); Capsule().fill(.white).frame(width: g.size.width * 0.68, height: 4) } }.frame(height: 4)
}.padding(14).frame(width: 320).background(Color(red: 0.15, green: 0.15, blue: 0.17), in: RoundedRectangle(cornerRadius: 14, style: .continuous)).shadow(color: .black.opacity(0.15), radius: 12, y: 5)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


