BrushColorToolControllerOptionsBuilder

@objc(IMGLYBrushColorToolControllerOptionsBuilder) open class BrushColorToolControllerOptionsBuilder: ToolControllerOptionsBuilder

The default BrushColorToolControllerOptionsBuilder for BrushColorToolControllerOptions.

  • A list of colors that is available in the brush color dialog. This property is optional.

    Declaration

    Swift

    open var availableFontColors: [UIColor]?
  • A list of color-names that is available in the brush color dialog. This property is optional.

    Declaration

    Swift

    open var 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 var brushColorActionButtonConfigurationClosure: ((ColorCollectionViewCell, UIColor, String) -> Void)?
  • This closure is called every time the user selects an action

    Declaration

    Swift

    open var brushColorActionSelectedClosure: ((UIColor, String) -> Void)?