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.

  • 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.

  • The Effect that is currently applied.

    Attention

    This member is deprecated and will be removed in the future. It is only meant for backward compatibility. Use effect instead.

    Declaration

    Swift

    @available(*, deprecated, renamed: "effect")
    var photoEffect: Effect? { get set }
  • 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.