TextDesignToolControllerOptions

@objcMembers
@objc(PESDKTextDesignToolControllerOptions)
open class TextDesignToolControllerOptions : ToolControllerOptions

Options for configuring a TextDesignToolController.

  • 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)?
  • Use this closure to configure the color collection view.

    Declaration

    Swift

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

    Declaration

    Swift

    public let updateTitle: String?
  • The color palette to display.

    Declaration

    Swift

    public let colorPalette: ColorPalette
  • 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, *)
    public private(set) lazy var emojisEnabled: Bool { get set }
  • Creates a new instance of TextDesignToolControllerOptions using the given builder.

    Declaration

    Swift

    public init(builder: TextDesignToolControllerOptionsBuilder)

    Parameters

    builder