Skip to content
Download Ring preview
Rendered from the SwiftUI source on this page.

Download Ring

From syxUI — written for both platforms, not translated between them.

A download progress ring.

Loaders · SwiftUI · iOS 17

  • loaders
  • swiftui

The actual source

DownloadRing.swift
// Download Ring · syxUI · https://syxui.dev/components/loader-download
// 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 DownloadRing: View { var body: some View { ZStack { Circle().stroke(Color.primary.opacity(0.08), lineWidth: 5).frame(width: 56, height: 56); Circle().trim(from: 0, to: 0.6).stroke(ldBlue, style: StrokeStyle(lineWidth: 5, lineCap: .round)).frame(width: 56, height: 56).rotationEffect(.degrees(-90)); Image(systemName: "arrow.down").font(.system(size: 18, weight: .semibold)).foregroundStyle(ldBlue) } } }
iOS 17 · No dependencies

Dependencies

SwiftUI
No external dependencies

Requires iOS 17