RichTextView icon indicating copy to clipboard operation
RichTextView copied to clipboard

Doubt/Question — Update text parsing, while writing

Open ivancantarino opened this issue 4 years ago • 1 comments

What is the purpose of your issue?

  • [ ] Bug
  • [x] Question
  • [x] Other

Description

Hello, I have a doubt that I'm looking forward to get some help 🙏🏻 I have added the RichTextView to my ViewController and passed in the input string and it works properly. I have also set the isEditable property to true.

My question comes: how can I update the content (properly parsed) as I'm writing? I have added the richText.update(input:_) within the textViewDidChange to be as the textView.text, but the view seems to lag/stuck!? and the view doesn't update itself.

Is there any way to achieve this?

ivancantarino avatar May 05 '20 20:05 ivancantarino

Hello, That should be the correct way to update a RichTextView's text. There are many other optional parameters in the update method that are set to nil, one of them being a completion block that might help or give some clues.

BisuGit avatar Oct 02 '20 19:10 BisuGit