TextLabel

@objc(PESDKTextLabel) open class TextLabel: UILabel

A TextLabel is used to show text that has been added to an image and provides improved support for accessibility.

  • Called by accessibility to make this label smaller.

    Declaration

    Swift

    open var decrementHandler: (() -> Void)?
  • Called by accessibility to make this label bigger.

    Declaration

    Swift

    open var incrementHandler: (() -> Void)?
  • Called by accessibility to rotate this label to the left.

    Declaration

    Swift

    open var rotateLeftHandler: (() -> Void)?
  • Called by accessibility to rotate this label to the right.

    Declaration

    Swift

    open var rotateRightHandler: (() -> Void)?
  • Called by accessibility to change the text of this label.

    Declaration

    Swift

    open var changeTextHandler: (() -> Void)?
  • Called by accessibility to increase the bounding box.

    Declaration

    Swift

    open var increaseBoundingBoxHandler: (() -> Void)?
  • Called by accessibility to decrease the bounding box.

    Declaration

    Swift

    open var decreaseBoundingBoxHandler: (() -> Void)?
  • This property holds the normalized center of the view within the image without any crops added. It is used to calculate the correct position of the label within the preview view.

    Declaration

    Swift

    open var normalizedCenter = CGPoint.zero
  • This property holds the normalized size of the view within the image.

    Declaration

    Swift

    open var normalizedSize = CGPoint.zero
  • Whether this label is currently selected.

    Declaration

    Swift

    open var isSelected = false
  • Perform a horizontal flip.

    Declaration

    Swift

    open func flipHorizontally()
  • Perform a vertical flip.

    Declaration

    Swift

    open func flipVertically()