Extends Item

Apple.Slider

An iOS style slider control.

Apple.Slider {
    value: 0.4
}

property Bool enabled: true

True if the slider is enabled, otherwise false. A disabled slider is dimmed slightly and doesn't respond to touch.

property Float value: 0

The slider's current value. Valid values are bound by the minValue and maxValue properties. If you assign a value outside this range, the slider itself will be clamped to the closest end.

property Float minValue: 0

property Float maxValue: 1

Configures the minimum and maximum values of the slider. The slider will have the minimum value when it is fully positioned to the left, and the maximum value when it is fully positioned to the right. If maxValue is less than minValue the slider will not be draggable.

property Color handleTint: #white

property Color minTrackTint: #Apple.Tint

property Color maxTrackTint: #Apple.Fill

The tint color of the slider handle, and the bar to the left and right of the handle.