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
PhotoEffect
that is currently applied.Declaration
Swift
open var photoEffect: PhotoEffect? { get set }
-
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 photo 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 photo effect. If
nil
is passed, the slider is hidden, otherwise it is shown.Declaration
Swift
open func setPhotoEffect(_ photoEffect: PhotoEffect?, animated: Bool)
Parameters
photoEffect
The photo effect to apply, if any.
animated
Whether to animate the showing or hiding of the slider.