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

Unable to update default and mention attributes of already written string #143

Open
rahulVermaSimpplr opened this issue Apr 14, 2023 · 0 comments

Comments

@rahulVermaSimpplr
Copy link

rahulVermaSimpplr commented Apr 14, 2023

I am facing an issue where I am unable to update the default and mention attributes of an already written string in the text view. Here is my use case:

I have a text view and there is some text in it including mentions and other text with default and mention attributes applied to it. The mention attributes are used to highlight usernames in the text. I am able to display this attributed string in a text view.

Now, I want to update the attributes of both mention and default on theme change, calling mentionListener.updateAttributes, updates the attributes for the text I entered after theme change, but I don't find any way to update the attributes of already written string.

@rahulVermaSimpplr rahulVermaSimpplr changed the title Can't update current attributes of mentions and default Unable to update default and mention attributes of already written string Apr 14, 2023
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