FilterToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKFilterToolControllerOptionsBuilder)
open class FilterToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default FilterToolControllerOptionsBuilder
for FilterToolControllerOptions
.
-
This closure can be used to configure the filter intensity slider.
Declaration
Swift
open var filterIntensitySliderConfigurationClosure: ((Slider) -> Void)?
-
This closure can be used to configure the filter intensity slider’s container view.
Declaration
Swift
open var filterIntensitySliderContainerConfigurationClosure: ViewConfigurationClosure?
-
Enable/Disable the filter intensity slider. Defaults to true.
Declaration
Swift
open var showFilterIntensitySlider: Bool
-
The intensity that should be initialy applied to a filter when selecting it. Defaults to 100 %.
Declaration
Swift
open var initialFilterIntensity: CGFloat
-
This closure is called every time the user selects a filter.
Declaration
Swift
open var 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
open var 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
open var filterCellConfigurationClosure: ((MenuCollectionViewCell, PhotoEffect) -> Void)?