-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
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
iOS 16 lines truncated when text contains multiple paragraphs. #131
Comments
I have the same problem 📛 |
Any update on this? Temp workaround:
|
UITextView instead UILabel - also temp workaround |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Everything works fine prior to the iOS 16 betas.
If you have a string that contains multiple paragaphs all paragraphs after the first one will be truncated after the first line. This happens even if the markdown string passed to SwiftyMarkdown contains no special markdown formatting.
For example if passed some multi paragraph text it would render like this:
If you pass the exact same text as an NSAttributedString directly (not using SwiftyMarkdown) then it lays out correctly.
I'm not sure what is causing this as I don't quite understand the inner workings or how attributed strings are built. I don't know if Apple changed something behind the scenes here or if it's just a bug with the beta but it's probably worth looking into.
Thanks
The text was updated successfully, but these errors were encountered: