ColorToolControllerOptions
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKColorToolControllerOptions)
open class ColorToolControllerOptions : ToolControllerOptions
Options for configuring a ColorToolController
.
-
An array of colors to present in the color tool. If you modify this array, you will also have to update the
availableColorNames
array. Both arrays must have the same number of elements.Declaration
Swift
open let availableColors: [UIColor]
-
The names corresponding to the colors passed in
availableColors
. These names are used for accessibility.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.