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

There is a white gap between border to progress bar #25

Closed y0unghe closed 9 years ago

y0unghe commented 9 years ago

I created the progress bar from storyboard, I change the UIView class to YLProgressBar. and then set the color in viewDidLoad().

progressBar.progressTintColor = UIColor.magentaColor()
progressBar.trackTintColor = UIColor.whiteColor()
progressBar.type = YLProgressBarType.Rounded
progressBar.stripesOrientation = YLProgressBarStripesOrientation.Vertical
![Uploading iOS Simulator Screen Shot Apr 12, 2015, 12.49.58.png . . .]()

progressBar.stripesDirection = YLProgressBarStripesDirection.Left

But there is a gap on the left, as you can see from pic below ios

yannickl commented 9 years ago

Hi,

You can change the value of the progressBarInset property if you don't want this behaviour. By default there is a 1px inset.

Best