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, and shadowOffset properties. If .paragraphStyle attribute is absent in the attributed string, it is created incorporating the label’s textAlignment 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 }