Skip to content
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

Bold & Italic font not set correctly when setting textView.attributedText #23

Open
xiaosongshu opened this issue Nov 3, 2017 · 0 comments

Comments

@xiaosongshu
Copy link

Have two LEOTextViews (Non-editable view and editable view).

First subclassed in Storyboard, with the ViewController written in Obj-C.
Second is initiated programmatically, with the ViewController written in Swift.

Write text and set to bold / italic in the second VC (Swift) and segue back to first VC (Obj-C). All formatting copies perfectly. Then try to segue back to the second VC (Swift) to edit again, and bold & italics are reverted back to normal text. Formatting not copied for some reason...although bullet points are copying correctly, just not bold & italic, which is strange since it copied over perfectly the first time to the non-editable view.

In both cases I'm just doing textView.attributedText = otherViewController.textView.attributedText

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant