SliderEditControllerDelegate

@available(iOS 9.0, *)
public protocol SliderEditControllerDelegate : AnyObject

The SliderEditControllerDelegate defines methods that allow you to respond to messages from the SliderEditController.

  • Called when the slider was shown.

    Declaration

    Swift

    func sliderEditController<SliderType>(_ sliderEditController: SliderEditController<SliderType>, didShowSliderAnimated animated: Bool) where SliderType : Slider

    Parameters

    sliderEditController

    The slider edit controller in which the slider was shown.

    animated

    Whether the slider was shown animated or not.

  • Called when the slider was hidden.

    Declaration

    Swift

    func sliderEditController<SliderType>(_ sliderEditController: SliderEditController<SliderType>, didHideSliderAnimated animated: Bool) where SliderType : Slider

    Parameters

    sliderEditController

    The slider edit controller in which the slider was hidden.

    animated

    Whether the slider was hidden animated or not.

  • Called when sliding occurred in the slider.

    Declaration

    Swift

    func sliderEditControllerDidSlide<SliderType>(_ sliderEditController: SliderEditController<SliderType>, toValue value: CGFloat) where SliderType : Slider

    Parameters

    sliderEditController

    The slider edit controller in which sliding occurred.

    value

    The value to which the slider was dragged.

  • Called when sliding ended in the slider.

    Declaration

    Swift

    func sliderEditControllerDidEndSliding<SliderType>(_ sliderEditController: SliderEditController<SliderType>) where SliderType : Slider

    Parameters

    sliderEditController

    The slider edit controller in which sliding ended.

  • Asks the delegate for the scroll view to which zoom events of the slider edit controller should be forwarded.

    Declaration

    Swift

    func sliderEditControllerTargetScrollView<SliderType>(_ sliderEditController: SliderEditController<SliderType>) -> UIScrollView? where SliderType : Slider

    Parameters

    sliderEditController

    The slider edit controller asking for the scroll view.

    Return Value

    The scroll view which should be the target of the proxy scroll view.