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
open let overlayIntensitySliderConfigurationClosure: ((Slider) -> Void)?
-
This closure can be used to configure the overlay intensity slider’s container view.
Declaration
Swift
open let overlayIntensitySliderContainerConfigurationClosure: ViewConfigurationClosure?
-
Enable/Disable the overlay intensity slider. Defaults to true.
Declaration
Swift
open let showOverlayIntensitySlider: Bool
-
Enable/Disable the overlay blend mode selection view. Defaults to true.
Declaration
Swift
open let showModeSelectionView: Bool
-
This closure is called every time the user selects a overlay.
Declaration
Swift
open let overlaySelectedClosure: ((Overlay) -> Void)?
-
This closure is called every time the user selects a new blend mode.
Declaration
Swift
open 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
open let overlayCellConfigurationClosure: ((FilterCollectionViewCell, Overlay) -> Void)?
-
The initial intensity that should be set when selecting an overlay.
Declaration
Swift
open let initialOverlayIntensity: CGFloat
-
The allowed blend modes.
Declaration
Swift
open let allowedBlendModes: [BlendMode]
-
This closure allows further configuration of the mode selection view.
Declaration
Swift
open let overlayModeSelectionViewConfigurationClosure: ((UICollectionView) -> Void)?
-
This closure allows further configuration of the mode selection cell.
Declaration
Swift
open let overlayModeSelectionCellConfigurationClosure: ((LabelBorderedCollectionViewCell, BlendMode) -> Void)?
-
Creates a new instance of
OverlayToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: OverlayToolControllerOptionsBuilder)
Parameters
builder
A
OverlayToolControllerOptionsBuilder
object.