AdjustToolControllerOptions
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKAdjustToolControllerOptions)
open class AdjustToolControllerOptions : ToolControllerOptions
Options for configuring an AdjustToolController
.
-
Whether to show a reset button to reset the applied adjustments. Defaults to
true
.Declaration
Swift
public let showResetButton: Bool
-
Defines all allowed tools. The adjust tool buttons are shown in the given order. Defaults to show all available tools.
Declaration
Swift
public let allowedAdjustTools: [AdjustTool]
-
This closure allows further configuration of the adjust tool buttons. The closure is called for each adjust tool button and has the button and its corresponding adjust tool as parameters.
Declaration
Swift
public let adjustToolButtonConfigurationClosure: ((MenuCollectionViewCell, AdjustTool?) -> Void)?
-
This closure is called every time the user selects a tool.
Declaration
Swift
public let adjustToolSelectedClosure: ((AdjustTool?) -> Void)?
-
This closure can be used to configure the slider that is visible when selecting an adjust tool.
Declaration
Swift
public let sliderConfigurationClosure: ((Slider) -> Void)?
-
This closure can be used to configure the view that contains the slider and that is visible when selecting an adjust tool.
Declaration
Swift
public let sliderContainerConfigurationClosure: ViewConfigurationClosure?
-
This closure will be called whenever the value of the slider changes. The
Slider
and the activeAdjustTool
will be passed as parameters.Declaration
Swift
public let sliderChangedValueClosure: ((Slider, AdjustTool) -> Void)?
-
This closure allows further configuration of the overlay buttons. The closure is called for each button and has the button and its corresponding enum value as parameters.
Declaration
Swift
public let overlayButtonConfigurationClosure: ((OverlayButton, AdjustOverlayAction) -> Void)?
-
Defines all allowed actions. Only buttons for allowed actions are visible. Defaults to show all available actions.
Declaration
Swift
public let allowedAdjustOverlayActions: [AdjustOverlayAction]
-
This closure is called when the user selects an action.
Declaration
Swift
public let adjustActionSelectedClosure: ((AdjustOverlayAction) -> Void)?
-
The insets used to layout the overlay buttons in their container. The
.top
value is ignored.Declaration
Swift
public let overlayButtonInsets: UIEdgeInsets
-
Creates a new instance of
AdjustToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: AdjustToolControllerOptionsBuilder)
Parameters
builder
An instance of
AdjustToolControllerOptionsBuilder
.