Closed wynioux closed 1 year ago
By the way I forgot to mention I tested it with code in Main Branch (4.0.0-beta.4) and iOS 16.4.
Good catch.
We can store the original backgroundColor in RichTextViewModel.SearchMatch and restore the color just like foregroundColor.
It seems like an optimal solution.
I have provided screenshots below.
I think this piece of code is causing the bug (it can be found in
RichTextViewModel.clearMatches()
), but it should be investigated.Potential Fix: We can store the original backgroundColor in
RichTextViewModel.SearchMatch
and restore the color just like foregroundColor.