Hi,
I'm trying to keep a constant kerning on a UILabel's text when I set it as justified.
I've tried setting it explicitly as an attribute, and it works just fine for all the alignment modes but justified.
let attributes = [NSAttributedString.Key.kern: 1.0]
let attributedString = NSAttributedString(string: label.text!, attributes: attributes)
label.attributedText = attributedString
Any clue to how should I tackle this?
As a test, I'm working on a blank iPhone Xr screen. UILabel centered horizontally and vertically. Set its width to 280, lines to 0 and text to: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
I'd like it to keep a constant kerning while varying the space between words in order to satisfy the alignment mode of justified.