TextSelectionView

@available(iOS 9.0, *)
@objcMembers
@objc(PESDKTextSelectionView)
open class TextSelectionView : UIView

A TextSelectionView is displayed above a label to indicate that this label is selected.

Properties

  • The handle on the right side of the view. This is used to resize the bounding box of a label.

    Declaration

    Swift

    open private(set) lazy var rightHandle: UIView = {
      let view = UIView()
      view.translatesAutoresizingMaskIntoConstraints = false
      view.isUserInteractionEnabled = true
      view.backgroundColor = .clear
      return view
    }()
  • The handle on the left side of the view. This is used to resize the bounding box of a label.

    Declaration

    Swift

    open private(set) lazy var leftHandle: UIView = {
      let view = UIView()
      view.translatesAutoresizingMaskIntoConstraints = false
      view.isUserInteractionEnabled = true
      view.backgroundColor = .clear
      return view
    }()
  • Called by accessibility to make this selection smaller.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    open var rotateRightHandler: (() -> 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)?