Awesome Open Source
Awesome Open Source


Swift4.0 Version ios GitHub license Twitter GitHub issues

A gradient progress bar (UIProgressView). Inspired by iOS Style Gradient Progress Bar with Pure CSS/CSS3.



GradientProgress can be added to your project using CocoaPods by adding the following line to your Podfile:

pod 'GradientProgress'


Clone the repo and drag the file GradientProgress.swift into your Xcode project.


  • [x] Supports AutoLayout.
  • [x] Supports customizing gradient colors.
  • [x] Supports customizing background colors.
  • [x] Supports customizing corner radius of gradient layer.
  • [x] Supports being created either in code or Interface Builder.

How to use

Simply drop a UIProgressView into your View Controller in the Storyboard. Select your progress view and in the Identity Inspector change the class to GradientProgress.

Don't forget to change the module to GradientProgress too.

Interface Builder

Setup the constraints for the UIProgressView according to your needs.

Import GradientProgress in your view controller source file.

import GradientProgress

Create an IBOutlet of the progress view in your view controller source file.

@IBOutlet weak var progressView: GradientProgress!

After that you can set the progress programmatically as you would do on a normal UIProgressView.

progressView.setProgress(0.5, animated: true)

progressView.progress = 0.75


You can change gradient colors and corner radius:

progressView.gradientColors = [UIColor.yellow.cgColor,]

progressView.cornerRadius = 10



Help, feedback or suggestions?

  • Open an issue if you need help, if you found a bug, or if you want to discuss a feature request.
  • Open a PR if you want to make some change to GradientProgress.
  • Contact @smetankin93 on Twitter for discussions, news & announcements about new pods.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Swift (95,689
Cocoapods (1,976
Swift4 (1,489
Progress Bar (692
Gradient (430
Progress (413
Xcode9 (145
Related Projects