SliderEditController

@available(iOS 9.0, *)
@objcMembers
open class SliderEditController<SliderType> : ViewController, ProxyZoomControllerDelegate where SliderType : Slider

A SliderEditController displays a slider at the bottom of its view. It can also contain a ProxyZoomController. It is supposed to be contained in a tool controller and is added above a PhotoEditPreviewController.

  • An object that acts as a delegate.

    Declaration

    Swift

    open weak var delegate: SliderEditControllerDelegate?
  • A ProxyZoomController that is contained in this view controller. Needed to enable scrolling and zooming.

    Declaration

    Swift

    open let proxyZoomController: ProxyZoomController?
  • The container view that hosts the slider.

    Declaration

    Swift

    open private(set) lazy var sliderContainerView: UIView { get set }
  • The slider in this view controller.

    Declaration

    Swift

    open private(set) lazy var slider: SliderType { get set }
  • Whether or not the slider is currently hidden.

    Declaration

    Swift

    open private(set) var isSliderHidden: Bool
  • Hides the slider.

    Declaration

    Swift

    open func hideSlider(animated: Bool)

    Parameters

    animated

    Whether to animated this change.

  • Shows the slider.

    Declaration

    Swift

    open func showSlider(animated: Bool)

    Parameters

    animated

    Whether to animate this change.

  • Hides the slider if it is currently visible and shows it if it is currently hidden.

    Declaration

    Swift

    open func toggleSlider(animated: Bool)

    Parameters

    animated

    Whether to animate this change.