Swiftpack.co -  Appracatappra/CircularProgressGauge as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Defines a SwiftUI Circular Progress Gause that will show the percent complete (0% to 100%) for a process.
.package(url: "https://github.com/Appracatappra/CircularProgressGauge.git", from: "1.0.3")

CircularProgressGauge for Swift and SwiftUI

CircularProgressGauge uses SwiftUI to display a circular gauge showing the percent complete (0% to 100%) for a process. CircularProgressGauge is completely user styleable with control over the following elements:

  • Gradient - Defines the color that will be used to fill the gauge.
  • Track Color - The color for the empty part of the gauge.
  • Font Color - The color for the percent completed text.
  • Font Size - The size of the percent completed text.


Swift Package Manager (Xcode 11 and above)

  1. Select File > Swift Packages > Add Package Dependency… from the File menu.
  2. Paste https://github.com/Appracatappra/CircularProgressGauge.git in the dialog box.
  3. Follow the Xcode's instruction to complete the installation.

Why not CocoaPods, or Carthage, or blank?

Supporting multiple dependency managers makes maintaining a library exponentially more complicated and time consuming.

Since, the Swift Package Manager is integrated with Xcode 11 (and greater), it's the easiest choice to support going further.

Using CircularProgressGauge

CircularProgressGauge is very easy to use inside a SwiftUI View:

@State var progress = 0.5
var body: some View {
	VStack {
	    // Progress is give as 0.0 to 1.0
	     CircularProgressGauge(progress: $progress)
	         .frame(width: 40.0, height: 40.0)

Would present the following gauge on iOS:


Stars: 1
Last commit: 5 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

5 weeks ago

Added new abilities to style the gauge and to disable animations (for situations where they might not be required). New styling includes: track width and system image, which allows the replacement of the percent % display with a SF Font image in the center of the gauge.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API