There are a myriad of settings for NSAttributedParagraphStyle
that I can see in Interface Builder:
A shortened attempt:
@IBDesignable class KerningLabel: UILabel {
@IBInspectable var kerning: CGFloat = 0.0 {
didSet {
let attrStr = NSMutableAttributedString(string: "Foobar")
attrStr.addAttributes([NSKernAttributeName: kerning],
range: NSMakeRange(0, attrStr.string.characters.count))
attributedText = attrStr
}
}
}