SliderEditController
@objcMembers
open class SliderEditController<SliderType> : ViewController, ProxyZoomControllerDelegate, SliderContainerControllerDelegate 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
public let proxyZoomController: ProxyZoomController?
-
A
SliderContainerController
that is contained in this view controller.Declaration
Swift
public let sliderContainerController: SliderContainerController<SliderType, ProxyZoomController>
-
The container view that hosts the slider.
Declaration
Swift
open var sliderContainerView: UIView { get }
-
The slider in this view controller.
Declaration
Swift
open var slider: SliderType { get }
-
Whether or not the slider is currently hidden.
Declaration
Swift
open var isSliderHidden: Bool { get }
-
Creates a new
SliderEditController
with the givenProxyZoomController
.Declaration
Swift
public init(proxyZoomController: ProxyZoomController?)
Parameters
proxyZoomController
A
ProxyZoomController
object.
-
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.