TextLabel
@objc(IMGLYTextLabel) 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 select this label.
Declaration
Swift
open var activateHandler: (() -> Void)?
-
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)?
-
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