yannickl / YLProgressBar

UIProgressView replacement with an highly and fully customizable animated progress bar in pure Core Graphics
http://yannickloriot.com/library/ios/ylprogressbar/
MIT License
1.28k stars 186 forks source link

Swift3 set progress issue #56

Closed nomansd closed 7 years ago

nomansd commented 7 years ago

it always goes to 100 whatever i set except 0.0.

progressBar.setProgress(10.0, animated: true) progressBar.progress = 10.0

nothing works. always jumps to 100%.

yannickl commented 7 years ago

The progress is represented by a floating-point value between 0.0 and 1.0. If you set values greater than 1, the progress is set to 1.