We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NSMutableParagraphStyle hyphenationFactor doesn't work with NantesLabel
To Reproduce Steps to reproduce the behavior:
Expected behavior The line brake for the long text is done with the hyphenation
The text was updated successfully, but these errors were encountered:
No branches or pull requests
NSMutableParagraphStyle hyphenationFactor doesn't work with NantesLabel
To Reproduce
Steps to reproduce the behavior:
let label = NantesLabel (frame: .zero)
label.delegate = self
label.numberOfLines = 0
let attrString = NSMutableAttributedString(string: longText)
let style = NSMutableParagraphStyle ()
style.hyphenationFactor = 1.0
let fullRange = NSMakeRange(0, attrString.length)
attrString.addAttributes([NSMutableAttributedString.Key.paragraphStyle : style], range: fullRange)
label.attributedText = attrString
If I set the label to UILabel, hyphenation works.
Expected behavior
The line brake for the long text is done with the hyphenation
The text was updated successfully, but these errors were encountered: