yannickl/YLProgressBar

Vertical gradient

Closed this issue · 2 comments

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

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];

@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!