BrushColorToolControllerOptions
@objc(IMGLYBrushColorToolControllerOptions) open class BrushColorToolControllerOptions: ToolControllerOptions
Options for configuring a BrushColorToolController
.
-
A list of colors that is available in the brush color dialog. This property is optional.
Declaration
Swift
open let availableFontColors: [UIColor]?
-
A list of color-names that is available in the brush color dialog. This property is optional.
Declaration
Swift
open let availableFontColorNames: [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 brushColorActionButtonConfigurationClosure: ((ColorCollectionViewCell, UIColor, String) -> Void)?
-
This closure is called every time the user selects an action
Declaration
Swift
open let brushColorActionSelectedClosure: ((UIColor, String) -> Void)?
-
Returns a newly allocated instance of
BrushColorToolControllerOptions
using the default builder.Declaration
Swift
public convenience init()
Return Value
An instance of
BrushColorToolControllerOptions
. -
Returns a newly allocated instance of
BrushColorToolControllerOptions
using the given builder.Declaration
Swift
public init(builder: BrushColorToolControllerOptionsBuilder)
Parameters
builder
A
BrushColorToolControllerOptionsBuilder
instance.Return Value
An instance of
BrushColorToolControllerOptions
.