Skip to content

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

@pfk3

Description

@pfk3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions