OverlayToolControllerOptions
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKOverlayToolControllerOptions)
open class OverlayToolControllerOptions : ToolControllerOptions
Options for configuring a OverlayToolController
.
-
This closure can be used to configure the overlay intensity slider.
Declaration
Swift
public let overlayIntensitySliderConfigurationClosure: ((Slider) -> Void)?
-
This closure can be used to configure the overlay intensity slider’s container view.
Declaration
Swift
public let overlayIntensitySliderContainerConfigurationClosure: ViewConfigurationClosure?
-
Enable/Disable the overlay intensity slider. Defaults to true.
Declaration
Swift
public let showOverlayIntensitySlider: Bool
-
Enable/Disable the overlay blend mode collection view. Defaults to true.
Declaration
Swift
public let showBlendModeCollectionView: Bool
-
This closure is called every time the user selects a overlay.
Declaration
Swift
public let overlaySelectedClosure: ((Overlay) -> Void)?
-
This closure is called every time the user selects a new blend mode.
Declaration
Swift
public let blendModeSelectedClosure: ((BlendMode) -> Void)?
-
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
public let overlayCellConfigurationClosure: ((MenuCollectionViewCell, Overlay) -> Void)?
-
The initial intensity that should be set when selecting an overlay.
Declaration
Swift
public let initialOverlayIntensity: CGFloat
-
The allowed blend modes.
Declaration
Swift
public let allowedBlendModes: [BlendMode]
-
This closure allows further configuration of the blend mode collection view.
Declaration
Swift
public let blendModeCollectionViewConfigurationClosure: ((UICollectionView) -> Void)?
-
This closure allows further configuration of the blend mode collection view cell.
Declaration
Swift
public let blendModeCollectionViewCellConfigurationClosure: ((BlendModeCollectionViewCell, BlendMode) -> Void)?
-
Creates a new instance of
OverlayToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: OverlayToolControllerOptionsBuilder)
Parameters
builder
A
OverlayToolControllerOptionsBuilder
object.