We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
RichTextViewModel.clearMatches()
textStorage.removeAttribute(.backgroundColor, range: range)
Potential Fix: We can store the original backgroundColor in RichTextViewModel.SearchMatch and restore the color just like foregroundColor.
RichTextViewModel.SearchMatch
The text was updated successfully, but these errors were encountered:
By the way I forgot to mention I tested it with code in Main Branch (4.0.0-beta.4) and iOS 16.4.
Sorry, something went wrong.
Good catch.
We can store the original backgroundColor in RichTextViewModel.SearchMatch and restore the color just like foregroundColor.
It seems like an optimal solution.
Fixed in #210
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: