lightdesign / LDProgressView

[Stale] A flat or gradient progress view with a simple color setter and customizable options written in pure Core Graphics
MIT License
368 stars 55 forks source link

Vertical bar #23

Closed ghost closed 9 years ago

ghost commented 9 years ago

Can we make the progress bar vertical?

rcdilorenzo commented 9 years ago

You may try using CGAffineTransform on the layer to get the desired behavior. As of right now, I have not implemented this. If I get enough upvotes on this thread however, I might consider doing it. Otherwise, feel free to send in a pull-request! :-)

ghost commented 9 years ago

Thank you for your answer. You are right. I tried this simple line of code " progressView.transform = CGAffineTransformMakeRotation( M_PI * -0.5 ); "

and worked.

Thank you!

rcdilorenzo commented 9 years ago

I'm always curious. Is this an app destined for the store? If so, I'd love to put it on the README so that others can see it in action.

ghost commented 9 years ago

Yes it's an app for the store! It will be at the store hopefully in few months.

rcdilorenzo commented 9 years ago

Cool. Let me know when it hits the store!

ghost commented 9 years ago

Sure! thank you again.