Skip to content

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

@xiaosongshu

Description

@xiaosongshu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions