FilterToolControllerOptions
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKFilterToolControllerOptions)
open class FilterToolControllerOptions : ToolControllerOptions
Options for configuring a FilterToolController
.
-
This closure can be used to configure the filter intensity slider.
Declaration
Swift
public let filterIntensitySliderConfigurationClosure: ((Slider) -> Void)?
-
This closure can be used to configure the filter intensity slider’s container view.
Declaration
Swift
public let filterIntensitySliderContainerConfigurationClosure: ViewConfigurationClosure?
-
Enable/Disable the filter intensity slider. Defaults to true.
Declaration
Swift
public let showFilterIntensitySlider: Bool
-
The intensity that should be initialy applied to a filter when selecting it. Defaults to 100 %.
Declaration
Swift
public let initialFilterIntensity: CGFloat
-
This closure is called every time the user selects a filter.
Declaration
Swift
public let filterSelectedClosure: ((PhotoEffect) -> Void)?
-
This closure will be called whenever the value of the slider changes. The
Slider
and the selected instance ofPhotoEffect
will be passed as parameters.Declaration
Swift
public let filterIntensityChangedClosure: ((Slider, PhotoEffect) -> Void)?
-
This closure allows further configuration of the filter cells. The closure is called for each filter cell and has the cell and its corresponding instance of
PhotoEffect
as parameters.Declaration
Swift
public let filterCellConfigurationClosure: ((MenuCollectionViewCell, PhotoEffect) -> Void)?
-
Creates a new
FilterToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: FilterToolControllerOptionsBuilder)
Parameters
builder
A
FilterToolControllerOptionsBuilder
object.