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: ((Effect) -> 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
Effect
as parameters.Declaration
Swift
public let filterCellConfigurationClosure: ((MenuCollectionViewCell, Effect) -> Void)?
-
This closure allows further configuration of the folder cells. The closure is called for each folder cell and has the cell as a parameter.
Declaration
Swift
public let folderCellConfigurationClosure: ((MenuCollectionViewCell) -> Void)?
-
This array represents the groups that filters are grouped in. A group can contain any filter that is defined in
Effect.all
. Any filters that are not part of a group but defined inEffect.all
will appear as a top-level effect in front of any groups. If you do not want to group any filters, simply set this to an empty array.Declaration
Swift
public let filterGroups: [Group]
-
Creates a new
FilterToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: FilterToolControllerOptionsBuilder)
Parameters
builder
A
FilterToolControllerOptionsBuilder
object.