Brendan Campbell-hartzell06/21/2022, 12:03 AM
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?
Dima Avdeev06/21/2022, 1:33 PM