Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Rotating the control to make it vertical? #54

Open
pfk3 opened this issue Sep 14, 2018 · 2 comments
Open

Feature Request: Rotating the control to make it vertical? #54

pfk3 opened this issue Sep 14, 2018 · 2 comments

Comments

@pfk3
Copy link

pfk3 commented Sep 14, 2018

Does anyone have any tips on how to modify these utterly fantastic classes in order to make them vertical instead of horizontal?

I made a class called RotatableSlider that I use for standard UISliders to be able to rotate them to either ascend in value vertically or descend in value vertically.

In my RotatableSlider class, there's an IBInspectable variable called "aspect" which is an Int. If "aspect" is 0, the slider is horizontal. If "aspect" is -1, the slider is rotated 90º counterclockwise from horizontal so it's vertical and ascending in value as you slide the slider up. If "aspect" is 1, the slider is rotated 90º clockwise from horizontal so it's vertical and descending in value as you slide the slider up.

It works great to rotate sliders to vertical orientation right inside of IB, but trying to modify the TGPDiscreteSlider class to do the same thing is giving me trouble.

Has anyone out there modified TGPDiscreteSlider yet to support it being vertical rather than horizontal? If not, is this a feature the contributors would consider implementing?

I think adding this capability so that changing the "aspect" of the control programmatically or in IB to rotate the TGPDiscreteSlider to vertical ascending or descending would be a great feature addition to an already fantastic control.

@david-koneksa
Copy link

I tried using a vertical transform that I have used on other sliders and the TGPDiscreteslider blew up :-(

@pfk3
Copy link
Author

pfk3 commented Jan 15, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants