RangeUISliderDelegate

@objc
public protocol RangeUISliderDelegate

Protocol used delegate the read of the RangeUISlider data. Multiple RangeUISlider instance could use the same delegate. The current slider (on which the user is tapping) is returned in all the methods (so that could be identified on the delegate class).

  • Calls the delegate when the user is changing the range by moving the knobs.

    Declaration

    Swift

    @objc
    optional 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.

  • Calls the delegate when the user has finished the change of the range.

    Declaration

    Swift

    @objc
    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.