Andrew-Chen-Wang / RichEditorView

Rich Text Editor in Swift. Newly Featured Code and Swift 5 compatible of cjwirth/RichEditorView.
BSD 3-Clause "New" or "Revised" License
134 stars 59 forks source link

Undo/Redo buttons in toolbar don't appear in SwiftUI #25

Open rmi111 opened 2 years ago

rmi111 commented 2 years ago

How to add undo/redo option. It does not shows up in SwiftUI.

Andrew-Chen-Wang commented 2 years ago

It may be because of safe area insets. Could you try adding that to your root body?

rmi111 commented 2 years ago

.safeAreaInset(.all) This?

Andrew-Chen-Wang commented 2 years ago

that's my guess. Do you have a screenshot or reproducible example? For instance, is the web view going out of frame as well? Can you see the rest of the items just fine in the toolbar?

rmi111 commented 2 years ago

Try this one: EditorCode.txt I can not see all buttons, apart from the Undo/Redo/Background colour, apart from this rest are showing just fine.

rmi111 commented 2 years ago

Another thing, background colour, and text colour is not working either.