ToolControllerOptions
@objcMembers
@objc(PESDKToolControllerOptions)
open class ToolControllerOptions : NSObject
Options for configuring a PhotoEditToolController
.
-
The background color of the menu. Unless this is set the configuration’s global background color, will be used.
Declaration
Swift
public let menuBackgroundColor: UIColor?
-
A configuration closure to configure the toolbars title view.
Declaration
Swift
public let titleViewConfigurationClosure: ViewConfigurationClosure?
-
A configuration closure to configure the apply button displayed at the bottom right. Defaults to a checkmark icon.
Declaration
Swift
public let applyButtonConfigurationClosure: ButtonConfigurationClosure?
-
A configuration closure to configure the discard button displayed at the bottom left. Defaults to a cross icon.
Declaration
Swift
public let discardButtonConfigurationClosure: ButtonConfigurationClosure?
-
This closure will be called when a tool has been entered.
Declaration
Swift
public let didEnterToolClosure: DidEnterToolClosure?
-
The closure will be called when a tool is about to be left.
Declaration
Swift
public let willLeaveToolClosure: WillLeaveToolClosure?
-
Creates a newly allocated instance of
ToolControllerOptions
using the default builder.Declaration
Swift
public convenience override init()
-
Creates a newly allocated instance of
ToolControllerOptions
using the given biulder.Declaration
Swift
public init(editorBuilder: ToolControllerOptionsBuilder)
Parameters
editorBuilder
A
ToolControllerOptionsBuilder
instance.