LabelWithTitleAdjustment
open class LabelWithTitleAdjustment : UILabel
A subclass of UILabel
allowing to easily specify line spacing and kerning.
This class exposes properties allowing to customize the title in Interface Builder.
Internally, this class works by setting attributedText
. Do not use
this class if you’re using attributedText
anywhere.
-
The line spacing to apply to the label’s text.
Negative values are unsupported. Please refer to the documentation for
NSAttributedString.Key.lineSpacing
for more info.Declaration
Swift
@IBInspectable public var adjustmentLineSpacing: CGFloat { get set }
-
The kern value to apply to the label’s text.
Please refer to the documentation for
NSAttributedString.Key.kernValue
for info about the possible values.Declaration
Swift
@IBInspectable public var adjustmentKerning: CGFloat { get set }
-
Please refer to the documentation for
UILabel.text
Declaration
Swift
override open var text: String? { get set }
-
Please refer to the documentation for
UILabel.attributedText
Declaration
Swift
override open var attributedText: NSAttributedString? { get set }
-
Please refer to the documentation for
UILabel.init(coder:)
Declaration
Swift
required public init?(coder aDecoder: NSCoder)