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
open let filterIntensitySliderConfigurationClosure: ((Slider) -> Void)?
-
This closure can be used to configure the filter intensity slider’s container view.
Declaration
Swift
open let filterIntensitySliderContainerConfigurationClosure: ViewConfigurationClosure?
-
Enable/Disable the filter intensity slider. Defaults to true.
Declaration
Swift
open let showFilterIntensitySlider: Bool
-
The intensity that should be initialy applied to a filter when selecting it. Defaults to 100 %.
Declaration
Swift
open let initialFilterIntensity: CGFloat
-
This closure is called every time the user selects a filter.
Declaration
Swift
open 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
open 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
open let filterCellConfigurationClosure: ((FilterCollectionViewCell, PhotoEffect) -> Void)?
-
Creates a new
FilterToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: FilterToolControllerOptionsBuilder)
Parameters
builder
A
FilterToolControllerOptionsBuilder
object.