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

Vertical gradient #46

Closed Natelegreat1 closed 8 years ago

Natelegreat1 commented 8 years ago

Not sure if #15 meant a vertical progress bar, but I would like to have the colours show in a vertical gradient like I have done in the Pause button. Is this possible currently? I can't seem to find any way... Thanks!

screen shot 2016-08-25 at 1 56 10 pm

yannickl commented 8 years ago

Hi,

No the issue #15 is not for this purpose. Have you tried to use the pattern color?

UIImage *image             = [UIImage imageNamed:@"gradient.png"];
progress.progressTintColor = [UIColor colorWithPatternImage:image];
Natelegreat1 commented 8 years ago

@yannickl This is an interesting idea that would work! I am changing the gradient pattern dynamically though so I would need a whole lot of images. No worries. Thanks for getting back to me though!