TextToolControllerOptionsBuilder

@objcMembers
@objc(PESDKTextToolControllerOptionsBuilder)
open class TextToolControllerOptionsBuilder : ToolControllerOptionsBuilder

The default TextToolControllerOptionsBuilder for TextToolControllerOptions.

  • Use this closure to configure the text input view.

    Declaration

    Swift

    open var textViewConfigurationClosure: ((UITextView) -> Void)?
  • Use this closure to configure the dimming view.

    Declaration

    Swift

    open var dimmingViewConfigurationClosure: ((UIView) -> Void)?
  • The title of the tool when it is used to update an existing label.

    Declaration

    Swift

    open var updateTitle: String?
  • The default color a newly created text has.

    Declaration

    Swift

    open var defaultTextColor: UIColor
  • The minimum initial font size of newly created text.

    Declaration

    Swift

    open var minimumTextSize: CGFloat
  • The maximum initial font size of newly created text. If set to nil the maximum text size is calculated to fit the image size which is the default.

    Declaration

    Swift

    open var maximumTextSize: CGFloat?
  • Creates a new instance of TextToolControllerOptionsBuilder initialized with the given options.

    Declaration

    Swift

    public init(options: TextToolControllerOptions)

    Parameters

    options
  • The maximum initial font size of newly created text. If set to nil the maximum text size is calculated to fit the image size which is the default.

    Declaration

    Swift

    @objc(maximumTextSize)
    open var _objCMaximumTextSize: NSNumber? { get set }