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 default alignment a newly created text has.

    Declaration

    Swift

    open var defaultTextAlignment: NSTextAlignment
  • 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?
  • Whether the user can use emojis as text input. Default is true.

    Attention

    Emojis are not cross-platform compatible. If you use the serialization feature to share edits across different platforms emojis will be rendered with the system’s local set of emojis and will appear differently.

    Declaration

    Swift

    @available(iOS 10.2, *)
    open lazy var emojisEnabled: Bool { get set }
  • 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 }