You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: