TYProgressBar
Custom animating gradient progress bar.
How to use
let progressBar = TYProgressBar()
func setupProgressBar() {
progressBar.frame = CGRect(x: 0, y: 0, width: 220, height: 220)
progressBar.center = self.view.center
self.view.addSubview(progressBar)
}
Customize
You can change gradient color and label font and text color
progressBar.gradients = [UIColor.red, UIColor.yellow]
progressBar.textColor = .orange
progressBar.font = UIFont(name: "HelveticaNeue-Medium", size: 22)!
Show progress
progressBar.progress = 0.5 // between 0 to 1