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: ((Effect) -> Void)?
  • This closure will be called whenever the value of the slider changes. The Slider and the selected instance of Effect will be passed as parameters.

    Declaration

    Swift

    open var filterIntensityChangedClosure: ((Slider, 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

    open var 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

    open var 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 in Effect.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

    open var filterGroups: [Group]
  • Creates a new instance of FilterToolControllerOptionsBuilder initialized with the given options.

    Declaration

    Swift

    public init(options: FilterToolControllerOptions)

    Parameters

    options