TextOptionsToolControllerOptionsBuilder

@objc(PESDKTextOptionsToolControllerOptionsBuilder) open class TextOptionsToolControllerOptionsBuilder: ToolControllerOptionsBuilder

The default TextOptionsToolControllerOptionsBuilder for TextOptionsToolControllerOptions.

  • Defines all allowed actions. Only buttons for allowed action are visible. Defaults to show all available actions.

    Declaration

    Swift

    open var allowedTextActions: [TextAction] = [.selectFont, .selectColor, .selectBackgroundColor, .selectAlignment, .bringToFront]
  • This closure allows further configuration of the action buttons. The closure is called for each action button and has the button and its corresponding action as parameters.

    Declaration

    Swift

    open var actionButtonConfigurationClosure: ((UICollectionViewCell, TextAction) -> Void)?
  • This closure allows further configuration of the overlay actions. The closure is called for each overlay and has the overlay and its corresponding enum value as parameters.

    Declaration

    Swift

    open var overlayButtonConfigurationClosure: ((OverlayButton, TextOverlayAction) -> Void)?
  • 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 var 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 var leftDraggingHandleConfigurationClosure: ((UIImageView) -> Void)?
  • This closure is called when the user selects an action.

    Declaration

    Swift

    open var textActionSelectedClosure: ((TextAction) -> Void)?
  • This closure is called when the user selects an overlay action.

    Declaration

    Swift

    open var overlayActionSelectedClosure: ((TextOverlayAction) -> Void)?
  • Defines all allowed overlay actions. Only buttons for allowed action are visible. To set this property from Obj-C, see the allowedTextOverlayActionsAsNSNumbers property.

    Declaration

    Swift

    open var allowedTextOverlayActions: [TextOverlayAction] = [.add, .delete, .undo, .redo]