RangeSliderCoordinator
@available(iOS 14.0, *)
public class RangeSliderCoordinator : RangeUISliderDelegate
RangeUISlider SwiftUI coordinator.
The coordinator is the delegate of the RangeUISlider instance wrapped by RangeSlider.
It implements the delegate method to update the mininimum and maximum value
selected and set them on the RangeSlider binding values.
-
Implementation of the
RangeUISliderDelegate.rangeIsChangingdelegate methodDeclaration
Swift
public func rangeIsChanging(event: RangeUISliderChangeEvent)Parameters
minValueSelectedthe minimum value selected.
maxValueSelectedthe maximum value selected.
sliderthe slider on which the range has been modified.
-
Implementation of the
RangeUISliderDelegate.rangeChangeFinisheddelegate methodDeclaration
Swift
public func rangeChangeFinished(event: RangeUISliderChangeFinishedEvent)Parameters
minValueSelectedthe minimum value selected.
maxValueSelectedthe maximum value selected.
sliderthe slider on which the range has been modified.
userInteractiona boolean indicating if the change comes from user interaction
View on GitHub
RangeSliderCoordinator Class Reference