TextDesignView

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKTextDesignView)
open class TextDesignView : UIView

A view that renders and displays a certain TextDesign.

  • The text design that this view should display.

    Declaration

    Swift

    open var textDesign: TextDesign? { get set }
  • The scale factor to apply to the generated image. Default is 0 which means that the main screen’s scale is used.

    Declaration

    Swift

    open var renderingScaleFactor: CGFloat { get set }
  • The text that should be displayed.

    Declaration

    Swift

    open var text: String? { get set }
  • The seed used for the randomizer.

    Declaration

    Swift

    open var randomizerSeed: UInt64 { get set }
  • Whether the text design should be drawn inverted.

    Declaration

    Swift

    open var isInverted: Bool { get set }
  • Padding that is added to each side of the view. This is used when isInverted is true.

    Declaration

    Swift

    open var padding: CGFloat
  • Renders the text design into an image and sets that image as imageView‘s image.

    Declaration

    Swift

    open func render()