You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.The text was updated successfully, but these errors were encountered: