https://kotlinlang.org logo
#compose-desktop
Title
# compose-desktop
b

Brendan Campbell-hartzell

06/21/2022, 12:03 AM
This is my first time working with
AnnotatedString
and I'm running into problems with removing a particular style from a range of text. Currently, I'm breaking the AnnotatedString into three parts: before the selection, the selection, and after the selection, mapping over the styles in the selection to remove the style, then combining them back together. The problem is that this leaves a lot of ranges with no styles inside the AnnotatedString. Is there a better way to be doing this?
4 Views