TextToolControllerOptions

@objcMembers
@objc(PESDKTextToolControllerOptions)
open class TextToolControllerOptions : ToolControllerOptions

Options for configuring a TextToolController.

  • Use this closure to configure the text input view. Defaults to an empty implementation.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public let updateTitle: String?
  • The default color a newly created text has.

    Declaration

    Swift

    public let defaultTextColor: UIColor
  • The minimum initial font size of newly created text.

    Declaration

    Swift

    public let 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

    public let maximumTextSize: CGFloat?
  • Creates a new instance of TextToolControllerOptions using the given builder.

    Declaration

    Swift

    public init(builder: TextToolControllerOptionsBuilder)

    Parameters

    builder
  • 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 }