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.rangeIsChanging delegate method

    Declaration

    Swift

    public func rangeIsChanging(event: RangeUISliderChangeEvent)

    Parameters

    minValueSelected

    the minimum value selected.

    maxValueSelected

    the maximum value selected.

    slider

    the slider on which the range has been modified.

  • Implementation of the RangeUISliderDelegate.rangeChangeFinished delegate method

    Declaration

    Swift

    public func rangeChangeFinished(event: RangeUISliderChangeFinishedEvent)

    Parameters

    minValueSelected

    the minimum value selected.

    maxValueSelected

    the maximum value selected.

    slider

    the slider on which the range has been modified.

    userInteraction

    a boolean indicating if the change comes from user interaction