danielsaidi / RichTextKit

RichTextKit is a Swift SDK that helps you use rich text in Swift and SwiftUI.
MIT License
909 stars 118 forks source link

Setting an attribute like foreground color is not undoable #206

Open markkrenek opened 1 week ago

markkrenek commented 1 week ago

I'm using the demo app on iOS. Type some text. Select some of it. Change the text color. Now try to undo. The color change is not undone, and instead, the entire text you typed is undone. I would expect only the color change to be undone.

Things like applying multiple styles (bold, italic, etc) are not individually undoable either.

As an aside, you can also change the text color using Apple's formatting sheet that you can get to from the context menu of selected text (Format > More). If you make a color change there, it is undoable.

danielsaidi commented 1 week ago

Thank you for reporting this @markkrenek 👍