RichEditorView icon indicating copy to clipboard operation
RichEditorView copied to clipboard

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

Open rmi111 opened this issue 2 years ago • 5 comments

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

rmi111 avatar May 31 '22 13:05 rmi111

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

Andrew-Chen-Wang avatar May 31 '22 13:05 Andrew-Chen-Wang

.safeAreaInset(.all) This?

rmi111 avatar May 31 '22 14:05 rmi111

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?

Andrew-Chen-Wang avatar May 31 '22 14:05 Andrew-Chen-Wang

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 avatar May 31 '22 14:05 rmi111

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

rmi111 avatar May 31 '22 14:05 rmi111