0Pricing
SwiftUI Academy · Lesson

Choosing Values with Slider

Pick a number in a range with a slider.

Meet the Slider

A Slider lets users drag to pick a number from a range. Think volume, brightness, or any smooth, continuous value. 🎚️

Sliders Hold a Number

A Slider works with a Double. As the user drags the thumb, that value updates continuously across its range.

@State private var volume = 0.5

All lessons in this course

  1. On/Off with Toggle
  2. Choosing Values with Slider
  3. Incrementing with Stepper
  4. Selecting Options with Picker
← Back to SwiftUI Academy