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(minValueSelected: CGFloat, maxValueSelected: CGFloat, slider: RangeUISlider)

    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(minValueSelected: CGFloat, maxValueSelected: CGFloat, slider: RangeUISlider)

    Parameters

    minValueSelected

    the minimum value selected.

    maxValueSelected

    the maximum value selected.

    slider

    the slider on which the range has been modified.