ColorToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKColorToolControllerOptionsBuilder)
open class ColorToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default ColorToolControllerOptionsBuilder
for ColorToolControllerOptions
.
-
An array of colors to present in the color tool.
Declaration
Swift
open var availableColors: [Color]
-
This closure allows further configuration of the action buttons. The closure is called for each action button and has the button and its corresponding color and color name as parameters.
Declaration
Swift
open var colorActionButtonConfigurationClosure: ((ColorCollectionViewCell, UIColor, String) -> Void)?
-
This closure is called every time the user selects an action
Declaration
Swift
open var colorActionSelectedClosure: ((UIColor, String) -> Void)?
-
Creates a new instance of
ColorToolControllerOptionsBuilder
initialized with the given options.Declaration
Swift
public init(options: ColorToolControllerOptions)
Parameters
options
A
ColorToolControllerOptions
instance.