ColorToolControllerOptionsBuilder
@available(iOS 9.0, *)
@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: [UIColor]
-
The names corresponding to the colors passed in
availableColors
. These names are used for accessibility.Declaration
Swift
open var availableColorNames: [String]
-
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)?