LKLabel
open class LKLabel : UILabel
A subclass of UILabel
that displays one or more lines of read-only text, often used in conjunction with controls to describe their intended purpose.
allowsDefaultTighteningForTruncation
and baselineAdjustment
properties are not supported.
Only .byTruncatingTail
line break mode is supported.
-
Undocumented
Declaration
Swift
open override class var layerClass: AnyClass { get }
-
Undocumented
Declaration
Swift
public override init(frame: CGRect)
-
Undocumented
Declaration
Swift
public required init?(coder: NSCoder)
-
The underlying attributed string drawn by the label, if set, the label ignores the
font
,textColor
,shadowColor
, andshadowOffset
properties. If.paragraphStyle
attribute is absent in the attributed string, it is created incorporating the label’stextAlignment
property. Animatable.Declaration
Swift
open override var attributedText: NSAttributedString? { get set }
-
The current text that is displayed by the label. Animatable.
Declaration
Swift
open override var text: String? { get set }
-
Undocumented
Declaration
Swift
open override var backgroundColor: UIColor? { get set }
-
Triggers bounds animation which provides public access to interpolated bounds during the text animation.
Declaration
Swift
open override func action(for layer: CALayer, forKey event: String) -> CAAction?
-
Draws the text. Called by the layer, must not be directly called.
Declaration
Swift
override open func display(_ layer: CALayer)
-
Undocumented
Declaration
Swift
open override var intrinsicContentSize: CGSize { get }
-
Undocumented
Declaration
Swift
open override func drawText(in rect: CGRect)
-
Undocumented
Declaration
Swift
open override var minimumScaleFactor: CGFloat { get set }
-
Undocumented
Declaration
Swift
open override var adjustsFontSizeToFitWidth: Bool { get set }
-
Undocumented
Declaration
Swift
open override var lineBreakMode: NSLineBreakMode { get set }