OverlayToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKOverlayToolControllerOptionsBuilder)
open class OverlayToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default OverlayToolControllerOptionsBuilder
for OverlayToolControllerOptions
.
-
This closure can be used to configure the overlay intensity slider.
Declaration
Swift
open var overlayIntensitySliderConfigurationClosure: ((Slider) -> Void)?
-
This closure can be used to configure the overlay intensity slider’s container view.
Declaration
Swift
open var overlayIntensitySliderContainerConfigurationClosure: ViewConfigurationClosure?
-
Enable/Disable the overlay intensity slider. Defaults to true.
Declaration
Swift
open var showOverlayIntensitySlider: Bool
-
This closure is called every time the user selects a overlay.
Declaration
Swift
open var overlaySelectedClosure: ((Overlay) -> Void)?
-
This closure is called every time the user selects a new blend mode.
Declaration
Swift
open var blendModeSelectedClosure: ((BlendMode) -> Void)?
-
Enable/Disable the overlay blend mode collection view. Defaults to true.
Declaration
Swift
open var showBlendModeCollectionView: Bool
-
This closure allows further configuration of the overlay cells. The closure is called for each filter cell and has the cell and its corresponding instance of
Overlay
as parameters.Declaration
Swift
open var overlayCellConfigurationClosure: ((MenuCollectionViewCell, Overlay) -> Void)?
-
The initial intensity that should be set when selecting an overlay.
Declaration
Swift
open var initialOverlayIntensity: CGFloat
-
The allowed blend modes.
Declaration
Swift
open var allowedBlendModes: [BlendMode] = [ .normal, .multiply, .overlay, .screen, .lighten, .softLight, .hardLight, .darken, .colorBurn ]
-
This closure allows further configuration of the blend mode collection view.
Declaration
Swift
open var blendModeCollectionViewConfigurationClosure: ((UICollectionView) -> Void)?
-
This closure allows further configuration of the blend mode collection view cell.
Declaration
Swift
open var blendModeCollectionViewCellConfigurationClosure: ((BlendModeCollectionViewCell, BlendMode) -> Void)?
-
Creates a new instance of
OverlayToolControllerOptionsBuilder
initialized with the given options.Declaration
Swift
public init(options: OverlayToolControllerOptions)
Parameters
options
A
OverlayToolControllerOptions
instance.