danielsaidi / RichTextKit

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

Redesign the RichTextKeyboardToolbar initializer #144

Closed danielsaidi closed 8 months ago

danielsaidi commented 9 months ago

Although I like the flexibility of the RichTextKeyboardToolbar, it comes with a price of complexity.

The leading and trailing actions (enum) and buttons (views) are confusing and seem to contradict each other, although they don't. Also, any custom values you provide only apply to the leading and trailing edges - there are still values that you can't modify.

I wonder if it'd be better to just have leading and trailing actions parameters, as well as a content modifier for the center space?