FilterEditController
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKFilterEditController)
open class FilterEditController : ViewController
A FilterEditController
can update the applied filter and the filter’s intensity using a
contained SliderEditController
. It is supposed to be contained in a tool controller and is
added above a PhotoEditPreviewController
.
-
The
SliderEditController
that is contained in this view controller.Declaration
Swift
public let sliderEditController: SliderEditController<Slider>
-
An object that acts as the delegate.
Declaration
Swift
open weak var delegate: FilterEditControllerDelegate?
-
The photo edit model.
Declaration
Swift
open var photoEditModel: PhotoEditModel { get set }
-
Whether to show the filter intensity slider.
Declaration
Swift
open var showFilterIntensitySlider: Bool
-
The initial filter intensity to apply when setting a new effect.
Declaration
Swift
open var initialFilterIntensity: CGFloat
-
Creates a new
FilterEditController
with the givenSliderEditController
.Declaration
Swift
public required init(sliderEditController: SliderEditController<Slider>)
Parameters
sliderEditController
A
SliderEditController
object.
-
Updates the currently set effect. If
nil
is passed, the slider is hidden, otherwise it is shown.Declaration
Swift
open func setEffect(_ effect: Effect?, animated: Bool)
Parameters
effect
The effect to apply, if any.
animated
Whether to animate the showing or hiding of the slider.
-
Updates the currently set photo effect. If
nil
is passed, the slider is hidden, otherwise it is shown.Attention
This method is deprecated and will be removed in the future. It is only meant for backward compatibility. Use
setEffect
instead.Declaration
Swift
@available(*, deprecated, renamed: "setEffect") func setPhotoEffect(_ photoEffect: Effect?, animated: Bool)
Parameters
photoEffect
The photo effect to apply, if any.
animated
Whether to animate the showing or hiding of the slider.