Skip to content

Issues when setting an initial Value other than 0 #15

Description

@PlasmaSoftUK

This control works reasonably well, thank you for the time you put in to it. When using this control I want to set an initial value which I do with:

let slider = TvOSSlider(frame: CGRect(x: 100 y: 100, width: 1000, height: 50))
slider.minimumValue = 0
slider.maximumValue = 255
slider.value = 50
view.addSubview(slider)

The control takes this value, and when you read it back it returns 50, however the visual slider in the UI remains at 0. When you start to move it, the control resets its value to 0 and starts incrementing from there. Would be great if this could display the correct initial value.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions