danielsaidi / RichTextKit

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

[UIKit] the toolbar is not showed up #87

Closed Stefan-UIT closed 1 year ago

Stefan-UIT commented 1 year ago

I use RichTextView to replace UITextView. But there is no toolbars is showed up like the demo. Please help. Do we need to do more configurations?

Screenshot 2023-11-14 at 22 57 00

simulator_screenshot_E855593D-8959-44B8-B19C-55D671A8F4B4

Stefan-UIT commented 1 year ago

I've just noted in your SwiftUI demo, you use VStack { editor toolbar }. There is no way that UIKit can work by using RichTextView only. (cause missing toolbar)

Screenshot 2023-11-14 at 23 12 36
danielsaidi commented 1 year ago

Hi @Stefan-UIT

The only UIKit-related things I focus on in this SDK are the parts required to make the SwiftUI parts work.

If you need this as a UIKit feature, I'm afraid you have to build it yourself :)

Stefan-UIT commented 1 year ago

Hi @danielsaidi, I'm using your code in demo (SwiftUI) . But the toolbar on the left looks weird, there are 3 undo buttons. Any ideas? thanks.

simulator_screenshot_562C1914-8EDD-4F41-B184-A96B10C08396

danielsaidi commented 1 year ago

Oh, that's strange! Does it look like that in the demo??

Stefan-UIT commented 1 year ago

I have copied the source code to my project, do some workarounds, it's worked now. Thanks