TextColorToolControllerOptions

@objc(IMGLYTextColorToolControllerOptions) open class TextColorToolControllerOptions: ToolControllerOptions

Options for configuring a TextColorToolController.

  • This closure allows further configuration of the right dragging handle which can be used to resize the right side of the text’s bounding box.

    Declaration

    Swift

    open let rightDraggingHandleConfigurationClosure: ((UIImageView) -> Void)?
  • This closure allows further configuration of the left dragging handle which can be used to resize the left side of the text’s bounding box.

    Declaration

    Swift

    open let leftDraggingHandleConfigurationClosure: ((UIImageView) -> Void)?
  • A list of colors that is available in the text color dialog. This property is optional.

    Declaration

    Swift

    open let availableFontColors: [UIColor]?
  • A list of color-names that is available in the text 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 textColorActionButtonConfigurationClosure: ((ColorCollectionViewCell, UIColor, String) -> Void)?
  • This closure is called every time the user selects an action

    Declaration

    Swift

    open let textColorActionSelectedClosure: ((UIColor, String) -> Void)?
  • Returns a newly allocated instance of TextColorToolControllerOptions using the default builder.

    Declaration

    Swift

    public convenience init()

    Return Value

    An instance of TextColorToolControllerOptions.

  • Returns a newly allocated instance of TextColorToolControllerOptions using the given builder.

    Declaration

    Swift

    public init(builder: TextColorToolControllerOptionsBuilder)

    Parameters

    builder

    A TextColorToolControllerOptionsBuilder instance.

    Return Value

    An instance of TextColorToolControllerOptions.