danielsaidi / RichTextKit

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

Adjust paragraph-based modifications #145

Open danielsaidi opened 4 months ago

danielsaidi commented 4 months ago

The following RichTextComponent set operations now use a shared paragraph setter, which will simplify things moving forward.

For now, setting these properties work when text is not selected, or if a single paragraph is selected. If multiple paragraphs are selected, only the first one is affected due to the lineRange check.

We should fix this before the 1.0 release @DominikBucher12

DominikBucher12 commented 4 months ago

https://github.com/danielsaidi/RichTextKit/pull/147 🎉

danielsaidi commented 3 months ago

Let's fix this after 1.0.