SliderView SwiftUI - admiral-team/admiralui-ios GitHub Wiki

Struct

A control for selecting a single value from a continuous range of values


Declaration

public struct SliderView: View

Overview

Component present a view with thumb image and line of progress. You can also control current value of Slider.

Live example

Configure a Slider

SliderView(
    value: .constant(10),
    minValue: 0,
    maxValue: 100,
    gestureChange: {}
)

Tracking slider value changes

SliderView(
    value: .constant(10),
    minValue: 0,
    maxValue: 100,
    gestureChange: {}
)
.onChange(of: sliderValue) { value in
  ...
}

Contribution

You can help us to find bugs or ask us to add features.

  • To start issue please use ready-made templates.
  • To make changes to the repository, you need to create a fork of the project, make changes to the code and create a pull request in our project. You can read more about this in the Github documentation.