chicio / RangeUISlider

:iphone: :large_blue_circle::heavy_minus_sign::large_blue_circle: An iOS range selection slider compatible with UIKit and SwiftUI. Developed using autolayout and highly customizable using IBDesignabled and IBInspectable or programmatically. It support also RTL (right to left) languages automatically out of the box.
http://rangeuislider.fabrizioduroni.it
MIT License
143 stars 22 forks source link

vertical slider #5

Open J-Arji opened 7 years ago

J-Arji commented 7 years ago

hi how can use rangeSlider as vertical? thanks

chicio commented 7 years ago

Hi @J-Arji at the moment RangeUISlider doesn't support vertical orientation. Anyway this could be a good idea for a new feature. I will work on it in the next weeks.

Thanks, Fabrizio.

J-Arji commented 7 years ago

thank you

ppbdrinker commented 2 years ago

have you tried approaching this problem with a simple affine transform?

what happens if you simply add a 90° rotation to an instance of RangeUISlider? i remember it working fine for the generic UISlider

e.g. (translating to swift shouldn't be too hard)

UISlider *slider = [[UISlider alloc] init];
slider.transform = CGAffineTransformMakeRotation(-M_PI * .5f);