Generic Structure

Slider

A control for selecting a value from a bounded linear range of values.

Declaration

struct Slider<Label, ValueLabel> where Label : View, ValueLabel : View

Overview

The appearance and interaction of Slider is determined at runtime and can be customized. Slider uses the SliderStyle provided by its environment to define its appearance and interaction. Each platform provides a default style that reflects the platform style, but providing a new style will redefine all Slider instances within that environment.

Relationships

Conforms To

See Also

Value Selectors

struct Toggle

A control that toggles between on and off states.

struct Picker

A control for selecting from a set of mutually exclusive values.

struct DatePicker

A control for selecting an absolute date.

struct Stepper

A control used to perform semantic increment and decrement actions.