ColorToolControllerOptions
@objc(PESDKColorToolControllerOptions) open class ColorToolControllerOptions: ToolControllerOptions
Options for configuring a ColorToolController
.
-
A list of colors that is available in the color dialog. This property is optional.
Declaration
Swift
open let availableColors: [UIColor]?
-
A list of color-names that is available in the color dialog. This property is optional.
Declaration
Swift
open let 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 let colorActionButtonConfigurationClosure: ((ColorCollectionViewCell, UIColor, String) -> Void)?
-
This closure is called every time the user selects an action
Declaration
Swift
open let colorActionSelectedClosure: ((UIColor, String) -> Void)?
-
Creates a newly allocated instance of
ColorToolControllerOptions
using the default builder.Declaration
Swift
public convenience init()
-
Creates a newly allocated instance of
ColorToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: ColorToolControllerOptionsBuilder)
Parameters
builder
A
ColorToolControllerOptions
instance.